IOQ3 commit 2093

This commit is contained in:
Richard Allen 2011-07-19 14:50:21 +00:00
parent ab4afce653
commit 6611d258fe
2 changed files with 3 additions and 2 deletions

View file

@ -2090,7 +2090,7 @@ void CG_UpdateMessageQueue(void);
void CG_AddMessage(const char* msg);
void QDECL CG_Printf( const char *msg, ... ) __attribute__ ((format (printf, 1, 2)));
void QDECL CG_Error( const char *msg, ... ) __attribute__ ((format (printf, 1, 2)));
void QDECL CG_Error( const char *msg, ... ) __attribute__ ((noreturn, format (printf, 1, 2)));
void CG_StartMusic(void);
@ -2426,7 +2426,7 @@ void CG_CheckChangedPredictableEvents(playerState_t * ps);
void trap_Print(const char *fmt);
// abort the game
void trap_Error(const char *fmt);
void trap_Error(const char *fmt) __attribute__((noreturn));
// milliseconds should only be used for performance tuning, never
// for anything game related. Get time from the CG_DrawActiveFrame parameter

View file

@ -54,6 +54,7 @@ void trap_Print(const char *fmt)
void trap_Error(const char *fmt)
{
syscall(CG_ERROR, fmt);
exit(1);
}
int trap_Milliseconds(void)