mpw/toolbox/toolbox.h
Kelvin Sherlock 7d10b0da5d convert : -> / for pathnames
(needs to be more complicated but ok for now)
2013-02-17 01:18:00 -05:00

30 lines
517 B
C++

#ifndef __mpw_toolbox_h__
#define __mpw_toolbox_h__
#include <string>
#include <cstdint>
#include <cstdio>
namespace ToolBox
{
extern bool Trace;
template<typename... Args>
inline void Log(const char *format, Args... args)
{
if (Trace) fprintf(stderr, format, args...);
}
void dispatch(uint16_t trap);
std::string ReadCString(uint32_t address, bool fname = false);
std::string ReadPString(uint32_t address, bool fname = false);
bool WritePString(uint32_t address, const std::string &s);
}
#endif