2 * Acess2 Window Manager v3 (axwin3)
3 * - By John Hodge (thePowersGang)
6 * - Common definitions and functions
11 #include <acess/sys.h>
15 #define ASSERT(expr) do{if(!(expr)){_SysDebug("%s:%i - ASSERTION FAILED: "#expr, __FILE__, __LINE__);exit(-1);}}while(0)
17 #define UNIMPLEMENTED() do{_SysDebug("TODO: Implement %s", __func__); for(;;);}while(0)
19 #define AXWIN_VERSION 0x300
21 static inline int MIN(int a, int b) { return (a < b) ? a : b; }
22 static inline int MAX(int a, int b) { return (a > b) ? a : b; }
25 extern int giTerminalFD;
26 extern const char *gsTerminalDevice;
28 extern int giScreenWidth, giScreenHeight;
32 extern int Input_Init(void);
33 extern void Input_FillSelect(int *nfds, fd_set *set);
34 extern void Input_HandleSelect(fd_set *set);
36 extern void IPC_Init(void);
37 extern void IPC_FillSelect(int *nfds, fd_set *set);
38 extern void IPC_HandleSelect(fd_set *set);