|
| #define | UNINITIALIZED 0x7f8e6d9c |
| |
| #define | MAX_PLAYERS 12 |
| |
| #define | USE_INLINE_ASM 1 |
| |
| #define | STRUCT_CMP(a, b) memcmp((void *) &a, (void *) &b, sizeof(a)) |
| |
| #define | LOCAL static |
| |
| #define | DIR_SEPARATOR_CHAR '/' |
| |
| #define | DIR_SEPARATOR_STR "/" |
| |
| #define | HARDWARE_ONLY |
| |
| #define | mprintf(args) outwnd_printf2 args |
| |
| #define | nprintf(args) outwnd_printf args |
| |
| #define | LOCATION __FILE__,__LINE__ |
| |
| #define | Assert(expr) |
| |
| #define | Verify(x) do { if (!(x)){ Error(LOCATION, "Verify failure: %s\n", #x); } ASSUME(x); } while(0) |
| |
| #define | VerifyEx(x, y, ...) do { if (!(x)) { Error(LOCATION, "Verify failure: %s with help text " #y "\n", #x, ##__VA_ARGS__); } ASSUME(x); } while(0) |
| |
| #define | Int3() debug_int3(__FILE__, __LINE__) |
| |
| #define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| |
| #define | PI 3.141592654f |
| |
| #define | MAX_FILENAME_LEN 32 |
| |
| #define | MAX_PATH_LEN 256 |
| |
| #define | SWAPSHORT(x) |
| |
| #define | SWAPINT(x) |
| |
| #define | BYTE_ORDER BIG_ENDIAN |
| |
| #define | __stwbrx(value, base, index) __asm__ ( "stwbrx %0, %1, %2" : : "r" (value), "b%" (index), "r" (base) : "memory" ) |
| |
| #define | INTEL_INT(x) SWAPINT(x) |
| |
| #define | INTEL_SHORT(x) SWAPSHORT(x) |
| |
| #define | INTEL_FLOAT(x) SWAPFLOAT(x) |
| |
| #define | TRUE 1 |
| |
| #define | FALSE 0 |
| |
| #define | VALID_FNAME(x) ( strlen((x)) && stricmp((x), "none") && stricmp((x), "<none>") ) |
| |
| #define | MONITOR(function_name) monitor mon_##function_name(#function_name); |
| |
| #define | MONITOR_INC(function_name, inc) do { mon_##function_name.value+=(inc); } while(0) |
| |
| #define | NOX(s) s |
| |
| #define | CLAMP(x, min, max) do { if ( (x) < (min) ) (x) = (min); else if ((x) > (max)) (x) = (max); } while(0) |
| |
| #define | STAMP_STRING "\001\001\001\001\002\002\002\002Read the Foundation Novels from Asimov. I liked them." |
| |
| #define | STAMP_STRING_LENGTH 80 |
| |
| #define | DEFAULT_CHECKSUM_STRING "\001\001\001\001" |
| |
| #define | DEFAULT_TIME_STRING "\002\002\002\002" |
| |
| #define | CALCULATE_STAMP_CHECKSUM() |
| |
| #define | vm_malloc(size) _vm_malloc((size),__FILE__,__LINE__,0) |
| |
| #define | vm_free(ptr) _vm_free((ptr),__FILE__,__LINE__) |
| |
| #define | vm_strdup(ptr) _vm_strdup((ptr),__FILE__,__LINE__) |
| |
| #define | vm_strndup(ptr, size) _vm_strndup((ptr),(size),__FILE__,__LINE__) |
| |
| #define | vm_realloc(ptr, size) _vm_realloc((ptr),(size),__FILE__,__LINE__,0) |
| |
| #define | vm_malloc_q(size) _vm_malloc((size),__FILE__,__LINE__,1) |
| |
| #define | vm_realloc_q(ptr, size) _vm_realloc((ptr),(size),__FILE__,__LINE__,1) |
| |
|
| bool | operator== (const vec3d &self, const vec3d &other) |
| |
| bool | operator== (const uv_pair &left, const uv_pair &right) |
| |
| bool | operator== (const screen3d &self, const screen3d &other) |
| |
| void _cdecl | WinAssert (char *text, char *filename, int line) |
| |
| void _cdecl | WinAssert (char *text, char *filename, int linenum, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(4 |
| |
| void _cdecl void | LuaError (struct lua_State *L, SCP_FORMAT_STRING const char *format=NULL,...) SCP_FORMAT_STRING_ARGS(2 |
| |
| void _cdecl void void _cdecl | Error (const char *filename, int line, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(3 |
| |
| void _cdecl void void _cdecl void _cdecl | Warning (char *filename, int line, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(3 |
| |
| void _cdecl void void _cdecl void _cdecl void _cdecl | WarningEx (char *filename, int line, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(3 |
| |
| void _cdecl void void _cdecl void _cdecl void _cdecl void _cdecl | ReleaseWarning (char *filename, int line, SCP_FORMAT_STRING const char *format,...) SCP_FORMAT_STRING_ARGS(3 |
| |
| void | gr_activate (int) |
| |
| void | debug_int3 (char *file, int line) |
| |
| float | SWAPFLOAT (float *x) |
| |
| int | myrand () |
| |
| int | rand32 () |
| |
| int | game_busy_callback (void(*callback)(int count), int delta_step=-1) |
| |
| void | game_busy (const char *filename=NULL) |
| |
| void | monitor_update () |
| |
| const char * | XSTR (const char *str, int index) |
| |
| template<class T > |
| void | CAP (T &v, T mn, T mx) |
| |
| int | vm_init (int min_heap_size) |
| |
| void | vm_free_all () |
| |
| void * | _vm_malloc (int size, char *filename=NULL, int line=-1, int quiet=0) |
| |
| char * | _vm_strdup (const char *ptr, char *filename, int line) |
| |
| char * | _vm_strndup (const char *ptr, int size, char *filename, int line) |
| |
| void | _vm_free (void *ptr, char *filename=NULL, int line=-1) |
| |
| void * | _vm_realloc (void *ptr, int size, char *filename=NULL, int line=-1, int quiet=0) |
| |
| void | script_hook_init (script_hook *hook) |
| |
| bool | script_hook_valid (script_hook *hook) |
| |