Usermode/ld-acess - Clean up loadlib.c, improved debug
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / common.h
index e0620c2..af620be 100644 (file)
@@ -18,6 +18,8 @@ typedef uint8_t       Uint8;
 typedef uint16_t       Uint16;
 typedef uint32_t       Uint32;
 
+#define ASSERT(cnd) do { if( !(cnd) ) { _SysDebug("ASSERT: "#cnd" failed"); *(volatile int*)1 = 123; } } while(0)
+
 // HACK: Replace with underscored
 #define SysDebug       _SysDebug
 
@@ -32,6 +34,11 @@ typedef struct {
        char    *Name;
 }      tLoadedLib;
 
+typedef struct {
+       void    *Value;
+       const char      *Name;
+} tLocalExport;
+
 // === GLOBALS ===
 extern tLoadedLib      gLoadedLibraries[MAX_LOADED_LIBRARIES];
 

UCC git Repository :: git.ucc.asn.au