Skip to content

Commit

Permalink
fix (msvc) compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Nov 18, 2018
1 parent 2929264 commit a3eae58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/lua/LuaEvents.cpp
Expand Up @@ -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))
Expand Down
8 changes: 4 additions & 4 deletions src/lua/LuaEvents.h
Expand Up @@ -3,7 +3,7 @@

#include "common/String.h"

class lua_State;
struct lua_State;
class LuaScriptInterface;

class Event
Expand Down Expand Up @@ -119,9 +119,9 @@ class LuaEvents
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);
};
Expand Down

0 comments on commit a3eae58

Please sign in to comment.