[Server] Simplify native CallPublic & CreateTimerEx

0.6.1
Koncord 8 years ago
parent 5292914325
commit 653db9e266

@ -6,7 +6,7 @@
#include <stdexcept> #include <stdexcept>
#include "ScriptFunction.hpp" #include "ScriptFunction.hpp"
#ifndef _WIN32 // temporally disabled #ifndef _WIN32 // temporarily disabled
#include <call.hpp> #include <call.hpp>
#endif #endif
@ -155,7 +155,7 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
throw runtime_error("C++ call: Unknown argument identifier " + *it); throw runtime_error("C++ call: Unknown argument identifier " + *it);
} }
} }
#ifndef _WIN32 // temporally disabled #ifndef _WIN32 // temporarily disabled
Func f = reinterpret_cast<Func>(fCpp); Func f = reinterpret_cast<Func>(fCpp);
result = ::Call(f, callArgs); result = ::Call(f, callArgs);
#else #else

Loading…
Cancel
Save