Wrap __attribute__s in macros

This commit is contained in:
Tim Angus committed 2025-09-07 17:16:31 +01:00
1 parent f976711fb4
commit 07b9c1bd83
33 files changed
+88 -114

No files matched your search

+3 -3
View File
@@ -1198,8 +1198,8 @@ extern vmCvar_t cg_obeliskRespawnDelay;
const char *CG_ConfigString( int index );
const char *CG_Argv( int arg );
void QDECL CG_Printf( const char *msg, ... ) __attribute__ ((format (printf, 1, 2)));
void QDECL CG_Error( const char *msg, ... ) __attribute__ ((noreturn, format (printf, 1, 2)));
void QDECL CG_Printf( const char *msg, ... ) Q_PRINTF_FUNC(1, 2);
void QDECL CG_Error( const char *msg, ... ) Q_NO_RETURN Q_PRINTF_FUNC(1, 2);
void CG_StartMusic( void );
@@ -1483,7 +1483,7 @@ void CG_CheckChangedPredictableEvents( playerState_t *ps );
void trap_Print( const char *fmt );
// abort the game
void trap_Error(const char *fmt) __attribute__((noreturn));
void trap_Error(const char *fmt) Q_NO_RETURN;
// milliseconds should only be used for performance tuning, never
// for anything game related. Get time from the CG_DrawActiveFrame parameter