mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 21:50:59 +01:00
engine: set useful format attribute for RefAPI, set Host_Error as NORETURN
This commit is contained in:
parent
9ce8edcb38
commit
f25254369d
@ -277,13 +277,13 @@ typedef struct ref_api_s
|
||||
void (*Cbuf_Execute)( void );
|
||||
|
||||
// logging
|
||||
void (*Con_Printf)( const char *fmt, ... ); // typical console allowed messages
|
||||
void (*Con_DPrintf)( const char *fmt, ... ); // -dev 1
|
||||
void (*Con_Reportf)( const char *fmt, ... ); // -dev 2
|
||||
void (*Con_Printf)( const char *fmt, ... ) _format( 1 ); // typical console allowed messages
|
||||
void (*Con_DPrintf)( const char *fmt, ... ) _format( 1 ); // -dev 1
|
||||
void (*Con_Reportf)( const char *fmt, ... ) _format( 1 ); // -dev 2
|
||||
|
||||
// debug print
|
||||
void (*Con_NPrintf)( int pos, const char *fmt, ... );
|
||||
void (*Con_NXPrintf)( struct con_nprint_s *info, const char *fmt, ... );
|
||||
void (*Con_NPrintf)( int pos, const char *fmt, ... ) _format( 2 );
|
||||
void (*Con_NXPrintf)( struct con_nprint_s *info, const char *fmt, ... ) _format( 2 );
|
||||
void (*CL_CenterPrint)( const char *s, float y );
|
||||
void (*Con_DrawStringLen)( const char *pText, int *length, int *height );
|
||||
int (*Con_DrawString)( int x, int y, const char *string, rgba_t setColor );
|
||||
@ -335,7 +335,7 @@ typedef struct ref_api_s
|
||||
|
||||
// utils
|
||||
void (*CL_ExtraUpdate)( void );
|
||||
void (*Host_Error)( const char *fmt, ... );
|
||||
void (*Host_Error)( const char *fmt, ... ) _format( 1 ) NORETURN;
|
||||
void (*COM_SetRandomSeed)( int lSeed );
|
||||
float (*COM_RandomFloat)( float rmin, float rmax );
|
||||
int (*COM_RandomLong)( int rmin, int rmax );
|
||||
|
Loading…
Reference in New Issue
Block a user