x64: updated system call signatures to accepts and return values of type intptr_t.
This commit is contained in:
@@ -305,16 +305,10 @@ SV_GameSystemCalls
|
||||
The module is making a system call
|
||||
====================
|
||||
*/
|
||||
//rcg010207 - see my comments in VM_DllSyscall(), in qcommon/vm.c ...
|
||||
#if ((defined __linux__) && (defined __powerpc__))
|
||||
#define VMA(x) ((void *) args[x])
|
||||
#else
|
||||
#define VMA(x) VM_ArgPtr(args[x])
|
||||
#endif
|
||||
#define VMF(x) (*(float*)&args[x])
|
||||
|
||||
#define VMF(x) ((float *)args)[x]
|
||||
|
||||
int SV_GameSystemCalls( int *args ) {
|
||||
intptr_t SV_GameSystemCalls( intptr_t *args ) {
|
||||
switch( args[0] ) {
|
||||
case G_PRINT:
|
||||
Com_Printf( "%s", VMA(1) );
|
||||
|
||||
Reference in New Issue
Block a user