stack damage tracking

This commit is contained in:
Alessandro Mauri 2023-03-04 14:33:22 +01:00
parent 4f2a7fbf18
commit 30510ab69a
3 changed files with 77 additions and 16 deletions

1
ugui.c
View file

@ -105,6 +105,7 @@ static ug_style_t style_cache = {0};
} \
// FIXME: is it really necessary to clear (memset) the stack
#define RESET_STACK(S) \
{ \
memset(S.items, 0, S.idx*sizeof(*(S.items))); \