mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 14:58:50 +00:00
use switch for std functions (instead of array, for better performance (?))
This commit is contained in:
parent
f50e1fe7c5
commit
044b0ccae0
3 changed files with 199 additions and 55 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue