From 3957ca94e7b2ba56cf447e63af82b7ed8a73fc45 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 21 Aug 2013 21:41:34 +0200 Subject: [PATCH] cPluginManager.AddHook old-style API usage prints the stack trace. This eases migration to #121 API. --- source/ManualBindings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp index 4f8ff530d..27c6684f2 100644 --- a/source/ManualBindings.cpp +++ b/source/ManualBindings.cpp @@ -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); }