Functioncall minilib quickfix for unix.

Signed-off-by: Warmist <Warmist@gmail.com>
develop
Warmist 2011-07-28 01:28:50 +03:00
parent bc23cc9eca
commit e30975f8f3
1 changed files with 4 additions and 1 deletions

@ -73,7 +73,10 @@ int FunctionCaller::CallF(size_t count,callconv conv,void* f,const vector<int> &
int FunctionCaller::CallFunction(size_t func_ptr,callconv conv,const vector<int> &arguments) int FunctionCaller::CallFunction(size_t func_ptr,callconv conv,const vector<int> &arguments)
{ {
//nasty nasty code... //nasty nasty code...
#ifdef LINUX_BUILD //quick fix
if(conv==THIS_CALL)
conv=STD_CALL
#endif
void* f= reinterpret_cast<void*>(func_ptr+base_); void* f= reinterpret_cast<void*>(func_ptr+base_);
size_t count=arguments.size(); size_t count=arguments.size();
if(count==0) if(count==0)