mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
warn about (and otherwise ignore) duplicate frame macros
This commit is contained in:
parent
79fdf8db80
commit
fee656eb68
1 changed files with 5 additions and 0 deletions
|
@ -440,6 +440,11 @@ void
|
||||||
add_frame_macro (char *token)
|
add_frame_macro (char *token)
|
||||||
{
|
{
|
||||||
frame_t *frame;
|
frame_t *frame;
|
||||||
|
|
||||||
|
if (Hash_Find (frame_tab, token)) {
|
||||||
|
warning (0, "duplicate frame macro `%s'", token);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ALLOC (1024, frame_t, frames, frame);
|
ALLOC (1024, frame_t, frames, frame);
|
||||||
|
|
||||||
frame->name = save_string (token);
|
frame->name = save_string (token);
|
||||||
|
|
Loading…
Reference in a new issue