diff --git a/tools/qfcc/source/qc-lex.l b/tools/qfcc/source/qc-lex.l index e3fd1f19f..b722ef9b7 100644 --- a/tools/qfcc/source/qc-lex.l +++ b/tools/qfcc/source/qc-lex.l @@ -440,6 +440,11 @@ void add_frame_macro (char *token) { frame_t *frame; + + if (Hash_Find (frame_tab, token)) { + warning (0, "duplicate frame macro `%s'", token); + return; + } ALLOC (1024, frame_t, frames, frame); frame->name = save_string (token);