2 * Acess2 Window Manager v3 (axwin3)
3 * - By John Hodge (thePowersGang)
6 * - Common definitions and functions
11 #ifndef AXWIN_SDL_BUILD
12 #include <acess/sys.h>
15 #define _SysDebug(f,a...) fprintf(stderr, f"\n" ,## a)
20 #define ASSERT(expr) do{if(!(expr)){_SysDebug("%s:%i - ASSERTION FAILED: "#expr, __FILE__, __LINE__);exit(-1);}}while(0)
22 #define UNIMPLEMENTED() do{_SysDebug("TODO: Implement %s", __func__); for(;;);}while(0)
24 #define AXWIN_VERSION 0x300
26 static inline int MIN(int a, int b) { return (a < b) ? a : b; }
27 static inline int MAX(int a, int b) { return (a > b) ? a : b; }
29 extern int giScreenWidth, giScreenHeight;