Branch: Tag:


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

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

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;