mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-02-16 23:20:09 +01:00
Moved STUBBED where all platforms can see it, made it more robust.
This commit is contained in:
parent
b42025bc9f
commit
6b248af4d0
@ -36,6 +36,21 @@ typedef unsigned short int UWORD;
|
|||||||
typedef unsigned char UBYTE;
|
typedef unsigned char UBYTE;
|
||||||
typedef unsigned int UINT;
|
typedef unsigned int UINT;
|
||||||
|
|
||||||
|
// Flip this to 1 to turn off these messages everywhere.
|
||||||
|
// !!! FIXME: I have it forced off for Windows because fprintf.
|
||||||
|
#if 0 || PLATFORM_WIN32
|
||||||
|
#define STUBBED(txt) do {} while (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef STUBBED
|
||||||
|
#define STUBBED(txt) do { \
|
||||||
|
static bool already_seen = false; \
|
||||||
|
if (!already_seen) { \
|
||||||
|
already_seen = true; \
|
||||||
|
fprintf(stderr, "STUBBED: %s in %s, line %d.\n", txt, __FILE__, __LINE__); \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __POWERPC__ /* rcg03232004 */
|
#if __POWERPC__ /* rcg03232004 */
|
||||||
#define PLATFORM_BIGENDIAN 1
|
#define PLATFORM_BIGENDIAN 1
|
||||||
@ -152,8 +167,6 @@ typedef unsigned int UINT;
|
|||||||
#define _RPT3(type, fmt, a1, a2, a3) _RPT_do(type, fmt, a1, a2, a3)
|
#define _RPT3(type, fmt, a1, a2, a3) _RPT_do(type, fmt, a1, a2, a3)
|
||||||
#define _RPT4(type, fmt, a1, a2, a3, a4) _RPT_do(type, fmt, a1, a2, a3, a4)
|
#define _RPT4(type, fmt, a1, a2, a3, a4) _RPT_do(type, fmt, a1, a2, a3, a4)
|
||||||
|
|
||||||
#define STUBBED(txt) fprintf(stderr, "STUB: %s in %s, line %d.\n", txt, __FILE__, __LINE__)
|
|
||||||
|
|
||||||
// !!! FIXME : Should inline functions go somewhere else?
|
// !!! FIXME : Should inline functions go somewhere else?
|
||||||
|
|
||||||
inline void _strupr(char *str)
|
inline void _strupr(char *str)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user