scroller working

This commit is contained in:
Krzosa Karol
2025-01-15 08:51:41 +01:00
parent 8c25a7f39c
commit 5f33455b97
4 changed files with 38 additions and 28 deletions

View File

@@ -70,7 +70,7 @@ typedef double f64;
#define STACK(type, size) struct { type data[size]; i32 len; }
#define STACK_PUSH(stack, ...) (assert((stack).len < lengthof((stack).data)), (stack).data[(stack).len++] = __VA_ARGS__)
#define STACK_POP(stack) (assert((stack).len > 0), (stack).data[--(stack).len])
#define STACK_LAST(stack) (assert((stack).len > 0), (stack).data + ((stack).len-1))
#define STACK_TOP(stack) (assert((stack).len > 0), (stack).data[((stack).len-1)])
#define STRINGIFY_(S) #S
#define STRINGIFY(S) STRINGIFY_(S)