Branch: Tag:

2018-07-24

2018-07-24 10:39:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Cpp: Fixed bug in define_multiple_macros().

The code didn't take into account that alloc_empty_define()
leaves an object on the stack(), so it popped the wrong value.

Fixes definition of callback macros taking arguments via
define_multiple_macros().

5191:    {    push_string(s = string_slice(s, 0, s->len-2));    def = alloc_empty_define(s); +  stack_swap();    pop_stack();    def->magic = insert_callback_define;    def->flags |= CPP_MACRO_VARARGS;