mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 16:11:37 -04:00
[Server] Simplify native CallPublic & CreateTimerEx
This commit is contained in:
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…
x
Reference in New Issue
Block a user