git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git]
/
Usermode
/
Libraries
/
ld-acess.so_src
/
common.h
diff --git
a/Usermode/Libraries/ld-acess.so_src/common.h
b/Usermode/Libraries/ld-acess.so_src/common.h
index
e0620c2
..
af620be
100644
(file)
--- a/
Usermode/Libraries/ld-acess.so_src/common.h
+++ b/
Usermode/Libraries/ld-acess.so_src/common.h
@@
-18,6
+18,8
@@
typedef uint8_t Uint8;
typedef uint16_t Uint16;
typedef uint32_t Uint32;
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
// HACK: Replace with underscored
#define SysDebug _SysDebug
@@
-32,6
+34,11
@@
typedef struct {
char *Name;
} tLoadedLib;
char *Name;
} tLoadedLib;
+typedef struct {
+ void *Value;
+ const char *Name;
+} tLocalExport;
+
// === GLOBALS ===
extern tLoadedLib gLoadedLibraries[MAX_LOADED_LIBRARIES];
// === GLOBALS ===
extern tLoadedLib gLoadedLibraries[MAX_LOADED_LIBRARIES];
UCC
git Repository :: git.ucc.asn.au