| 18 | }; |
| 19 | |
| 20 | CBMScope* cbm_scope_push(CBMArena* a, CBMScope* current) { |
| 21 | CBMScope* scope = (CBMScope*)cbm_arena_alloc(a, sizeof(CBMScope)); |
| 22 | if (!scope) { |
| 23 | return current; |
| 24 | } |
| 25 | memset(scope, 0, sizeof(CBMScope)); |
| 26 | scope->parent = current; |
| 27 | scope->arena = a; |
| 28 | return scope; |
| 29 | } |
| 30 | |
| 31 | CBMScope* cbm_scope_pop(CBMScope* scope) { |
| 32 | if (!scope) { |
no test coverage detected