mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
Changed: If symbol not found, return false
This commit is contained in:
parent
cd68bd93a3
commit
672f30c816
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ typedef void (__cdecl *SteamAPI_RunCallbacksFuncPtr)();
|
|||
|
||||
// macros to simplify dynamic functions loading
|
||||
#define NL_DECLARE_SYMBOL(symbol) symbol##FuncPtr nl##symbol = NULL
|
||||
#define NL_LOAD_SYMBOL(symbol) nl##symbol = (symbol##FuncPtr)NLMISC::nlGetSymbolAddress(_Handle, #symbol)
|
||||
#define NL_LOAD_SYMBOL(symbol) \
|
||||
nl##symbol = (symbol##FuncPtr)NLMISC::nlGetSymbolAddress(_Handle, #symbol); \
|
||||
if (nl##symbol == NULL) return false
|
||||
|
||||
NL_DECLARE_SYMBOL(SteamAPI_Init);
|
||||
NL_DECLARE_SYMBOL(SteamAPI_Shutdown);
|
||||
|
|
Loading…
Reference in a new issue