1
0
forked from 0ad/0ad
0ad/source/ps/Pyrogenesis.h
janwas 77faccb6cb # small fixes.
add translate_free (avoids mem leak in translate API)
debug: when skipping errors but an unexpected one is raised, trigger a
warning.
test_archive_builder: properly clean up archive; decrease number of
files to speed things up.

This was SVN commit r4035.
2006-06-25 15:35:28 +00:00

31 lines
533 B
C

/*
Pyrogenesis.h
by Raj Sharma
rsharma@uiuc.edu
Standard declarations which are included in all projects.
*/
#ifndef PYROGENESIS_H
#define PYROGENESIS_H
typedef const char * PS_RESULT;
#define DEFINE_ERROR(x, y) PS_RESULT x=y
#define DECLARE_ERROR(x) extern PS_RESULT x
DECLARE_ERROR(PS_OK);
DECLARE_ERROR(PS_FAIL);
#define MICROLOG debug_wprintf_mem
// overrides ah_translate. registered in GameSetup.cpp
extern const wchar_t* psTranslate(const wchar_t* text);
extern void psTranslateFree(const wchar_t* text);
#endif