diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-09-23 18:05:30 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-09-23 18:05:30 +0000 |
commit | f8da937c0e68f24f87f2e93c9c04bdf43afbfb05 (patch) | |
tree | 47756966e25be0d20ba2d14ced3e67c47a7a2f91 | |
parent | c850b5c9ddd23dd660dfea5fd935eedf9e50bc6b (diff) |
Added printf attributes to some functions in game_import_t structure.
-rw-r--r-- | source/g_public.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/g_public.h b/source/g_public.h index cde1a81..3e5cf6e 100644 --- a/source/g_public.h +++ b/source/g_public.h @@ -109,10 +109,10 @@ struct edict_s typedef struct { // special messages - void (*bprintf) (int printlevel, const char *fmt, ...); - void (*dprintf) (const char *fmt, ...); - void (*cprintf) (edict_t *ent, int printlevel, const char *fmt, ...); - void (*centerprintf) (edict_t *ent, const char *fmt, ...); + void (* q_printf( 2, 3 ) bprintf) (int printlevel, const char *fmt, ...); + void (* q_printf( 1, 2 ) dprintf) (const char *fmt, ...); + void (* q_printf( 3, 4 ) cprintf) (edict_t *ent, int printlevel, const char *fmt, ...); + void (* q_printf( 2, 3 ) centerprintf) (edict_t *ent, const char *fmt, ...); void (*sound) (edict_t *ent, int channel, int soundindex, float volume, float attenuation, float timeofs); void (*positioned_sound) (vec3_t origin, edict_t *ent, int channel, int soundinedex, float volume, float attenuation, float timeofs); @@ -122,7 +122,7 @@ typedef struct // they connect, and changes are sent to all connected clients. void (*configstring) (int num, const char *string); - void (* q_noreturn error) (const char *fmt, ...); + void (* q_noreturn q_printf( 1, 2 ) error) (const char *fmt, ...); // the *index functions create configstrings and some internal server state int (*modelindex) (const char *name); |