mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-20 13:46:20 +00:00
fd701dc5d9
This was SVN commit r585.
21 lines
383 B
C
Executable File
21 lines
383 B
C
Executable File
struct DllLoadNotify;
|
|
|
|
extern void wdll_add_notify(DllLoadNotify*);
|
|
|
|
struct DllLoadNotify
|
|
{
|
|
const char* dll_name;
|
|
int(*func)(void);
|
|
DllLoadNotify* next;
|
|
|
|
DllLoadNotify(const char* _dll_name, int(*_func)(void))
|
|
{
|
|
dll_name = _dll_name;
|
|
func = _func;
|
|
wdll_add_notify(this);
|
|
}
|
|
};
|
|
|
|
#define WDLL_LOAD_NOTIFY(dll_name, func)\
|
|
static DllLoadNotify func##_NOTIFY(dll_name, func)
|