turn off c++ symbol mangling for GetGameAPI/vmMain/dllEntry

This commit is contained in:
Jonathan Gray 2013-04-23 01:56:28 +10:00
parent 07ad60e4f5
commit 00aa9c17af
4 changed files with 8 additions and 0 deletions

View file

@ -88,6 +88,7 @@ This is the only way control passes into the cgame module.
This must be the very first function compiled into the .q3vm file
================
*/
extern "C" {
int vmMain( int command, int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7 ) {
centity_t *cent;
@ -169,6 +170,7 @@ Ghoul2 Insert End
}
return -1;
}
} // extern "C"
/*
Ghoul2 Insert Start

View file

@ -28,10 +28,12 @@ extern void CG_PreInit();
int (*qsyscall)( int arg, ... ) = (int (*)( int, ...))-1;
extern "C" {
void dllEntry( int (*syscallptr)( int arg,... ) ) {
qsyscall = syscallptr;
CG_PreInit();
}
} // extern "C"
inline int PASSFLOAT( float x ) {

View file

@ -744,6 +744,7 @@ and global variables
=================
*/
extern int PM_ValidateAnimRange( int startFrame, int endFrame, float animSpeed );
extern "C" {
game_export_t *GetGameAPI( game_import_t *import ) {
gameinfo_import_t gameinfo_import;
@ -784,6 +785,7 @@ game_export_t *GetGameAPI( game_import_t *import ) {
return &globals;
}
} // extern "C"
void QDECL G_Error( const char *fmt, ... ) {
va_list argptr;

View file

@ -15,10 +15,12 @@
int (*qsyscall)( int arg, ... ) = (int (*)( int, ...))-1;
extern "C" {
void dllEntry( int (*syscallptr)( int arg,... ) ) {
qsyscall = syscallptr;
// CG_PreInit();
}
} // extern "C"
int CL_UISystemCalls( int *args );