00001 // $Id: addons.h 1 2006-01-13 22:47:50Z MagicalTux $ 00002 // Addons local exports : exported functions to addons... 00003 00004 #ifdef DYNAMIC_LINKING 00005 #ifdef __ADDON 00006 #define LOCAL_EX_SYMBOL(_symbol,_offset,_var) memcpy(&_var,call_table+(_offset*4),4) 00007 #else 00008 #define LOCAL_EX_SYMBOL(_symbol,_offset,_var) addon_tmp_pointer=_symbol; memcpy(call_table+(_offset*4),&addon_tmp_pointer,4) 00009 #endif 00010 #else 00011 #define LOCAL_EX_SYMBOL(_symbol,_offset,_var) _var=_symbol 00012 #endif 00013 00014 #define LFNC_COUNT 0 00015 00016 // common export table 00017 00018 // #define LFNC_xxx(_var) LOCAL_EX_SYMBOL(xxx,0,_var) 00019