mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 02:40:47 +02:00
fix (msvc) compile error
This commit is contained in:
@@ -146,7 +146,6 @@ int LuaEvents::RegisterEventHook(lua_State *l, ByteString eventName)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
int LuaEvents::UnregisterEventHook(lua_State *l, ByteString eventName)
|
int LuaEvents::UnregisterEventHook(lua_State *l, ByteString eventName)
|
||||||
{
|
{
|
||||||
if (lua_isfunction(l, 2))
|
if (lua_isfunction(l, 2))
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "common/String.h"
|
#include "common/String.h"
|
||||||
|
|
||||||
class lua_State;
|
struct lua_State;
|
||||||
class LuaScriptInterface;
|
class LuaScriptInterface;
|
||||||
|
|
||||||
class Event
|
class Event
|
||||||
@@ -119,9 +119,9 @@ public:
|
|||||||
close
|
close
|
||||||
};
|
};
|
||||||
|
|
||||||
static int RegisterEventHook(lua_State* l, ByteString eventName);
|
static int RegisterEventHook(lua_State *l, ByteString eventName);
|
||||||
static int UnregisterEventHook(lua_State* l, ByteString eventName);
|
static int UnregisterEventHook(lua_State *l, ByteString eventName);
|
||||||
static bool HandleEvent(LuaScriptInterface * luacon_ci, Event * event, ByteString eventName);
|
static bool HandleEvent(LuaScriptInterface *luacon_ci, Event *event, ByteString eventName);
|
||||||
|
|
||||||
static String luacon_geterror(LuaScriptInterface *luacon_ci);
|
static String luacon_geterror(LuaScriptInterface *luacon_ci);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user