use switch for std functions (instead of array, for better performance (?))

This commit is contained in:
ProgramSnail 2025-03-03 01:15:07 +03:00
parent f50e1fe7c5
commit 044b0ccae0
3 changed files with 199 additions and 55 deletions

View file

@ -37,6 +37,8 @@ static inline void **s_nth(size_t n) {
return (void **)__gc_stack_top + n;
}
static inline aint *s_nth_i(size_t n) { return (aint *)s_nth(n); }
static inline void **s_peek() {
#ifndef WITH_CHECK
if ((void **)__gc_stack_top == s_top()) {