fix (msvc) compile error

This commit is contained in:
jacob1 2018-11-17 19:33:16 -05:00
parent 2929264885
commit a3eae58120
2 changed files with 4 additions and 5 deletions

View File

@ -146,7 +146,6 @@ int LuaEvents::RegisterEventHook(lua_State *l, ByteString eventName)
return 1;
}
#include <iostream>
int LuaEvents::UnregisterEventHook(lua_State *l, ByteString eventName)
{
if (lua_isfunction(l, 2))

View File

@ -3,7 +3,7 @@
#include "common/String.h"
class lua_State;
struct lua_State;
class LuaScriptInterface;
class Event
@ -119,9 +119,9 @@ public:
close
};
static int RegisterEventHook(lua_State* l, ByteString eventName);
static int UnregisterEventHook(lua_State* l, ByteString eventName);
static bool HandleEvent(LuaScriptInterface * luacon_ci, Event * event, ByteString eventName);
static int RegisterEventHook(lua_State *l, ByteString eventName);
static int UnregisterEventHook(lua_State *l, ByteString eventName);
static bool HandleEvent(LuaScriptInterface *luacon_ci, Event *event, ByteString eventName);
static String luacon_geterror(LuaScriptInterface *luacon_ci);
};