mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
changes to compile on gcc 4.7
This commit is contained in:
@@ -296,7 +296,7 @@ public:
|
||||
|
||||
/// Pushes any type onto the stack
|
||||
template<typename T, typename... Args>
|
||||
void polymorphicPush(T v, Args... args) { push_luavalue(v); polymorphicPush(args...); }
|
||||
void polymorphicPush(T v, Args... args);
|
||||
void polymorphicPush() { }
|
||||
|
||||
/// Casts a value from stack to any type
|
||||
@@ -320,6 +320,12 @@ extern LuaInterface g_lua;
|
||||
#include "luabinder.h"
|
||||
#include "luavaluecasts.h"
|
||||
|
||||
template<typename T, typename... Args>
|
||||
void LuaInterface::polymorphicPush(T v, Args... args) {
|
||||
push_luavalue(v);
|
||||
polymorphicPush(args...);
|
||||
}
|
||||
|
||||
// next templates must be defined after above includes
|
||||
template<class C, typename F>
|
||||
void LuaInterface::bindClassStaticFunction(const std::string& functionName, const F& function) {
|
||||
|
Reference in New Issue
Block a user