X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Finclude%2Fcommon.h;h=1be86ffeb366a93ce8fcd277132d8cfab61c4edc;hb=97088ef688ddecc19077ce134046af7ea6d1e232;hp=5aae92737e7a2ec367aea9e1b9e07b83638ee119;hpb=1b3ef37ec6016643ee96ebab4c9966d9bb846b21;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/include/common.h b/Usermode/Applications/axwin3_src/WM/include/common.h index 5aae9273..1be86ffe 100644 --- a/Usermode/Applications/axwin3_src/WM/include/common.h +++ b/Usermode/Applications/axwin3_src/WM/include/common.h @@ -12,15 +12,27 @@ #define TODO(str) +#define ASSERT(expr) do{if(!(expr)){_SysDebug("%s:%i - ASSERTION FAILED: "#expr, __FILE__, __LINE__);exit(-1);}}while(0) + +#define UNIMPLEMENTED() do{_SysDebug("TODO: Implement %s", __func__); for(;;);}while(0) + +#define AXWIN_VERSION 0x300 + +// === GLOBALS === +extern int giTerminalFD; +extern const char *gsTerminalDevice; + +extern int giScreenWidth, giScreenHeight; + // === FUNCTIONS === // --- Input --- - int Input_Init(void); -void Input_FillSelect(int *nfds, fd_set *set); -void Input_HandleSelect(fd_set *set); +extern int Input_Init(void); +extern void Input_FillSelect(int *nfds, fd_set *set); +extern void Input_HandleSelect(fd_set *set); // --- IPC --- - int IPC_Init(void); -void IPC_FillSelect(int *nfds, fd_set *set); -void IPC_HandleSelect(fd_set *set); +extern void IPC_Init(void); +extern void IPC_FillSelect(int *nfds, fd_set *set); +extern void IPC_HandleSelect(fd_set *set); #endif