cPluginManager.AddHook old-style API usage prints the stack trace.
This eases migration to #121 API.
This commit is contained in:
parent
e263fc7c72
commit
3957ca94e7
@ -893,6 +893,7 @@ static int tolua_cPluginManager_AddHook(lua_State * tolua_S)
|
||||
{
|
||||
// The next params are a cPlugin and a number, assume style 3 or 4
|
||||
LOGINFO("cPluginManager.AddHook(): Deprecated format used, use cPluginManager.AddHook(HOOK_TYPE, CallbackFunction) instead. Fixing the call for you.");
|
||||
S.LogStackTrace();
|
||||
return tolua_cPluginManager_AddHook_DefFn(PlgMgr, S, ParamIdx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user