intptr_t VM_DllSyscall( intptr_t arg, ... ) { #if !id386 || defined __clang__ || defined MACOS_X // rcg010206 - see commentary above intptr_t args[16]; va_list ap; args[0] = arg; va_start( ap, arg ); for (size_t i = 1; i < ARRAY_LEN (args); i++) args[i] = va_arg( ap, intptr_t ); va_end( ap ); return CL_CgameSystemCalls( args ); #else // original id code return CL_CgameSystemCalls( &arg ); #endif }
int VM_DllSyscall( int arg, ... ) { // return cgvm->systemCall( &arg ); return CL_CgameSystemCalls( &arg ); }