mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +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
|
|
@ -127,7 +127,7 @@ void LprintfPerror(char *s, ...);
|
|||
|
||||
void Bmatch_failure(void *v, char *fname, aint line, aint col);
|
||||
|
||||
void * /*Lstrcat*/ Li__Infix_4343(void *a, void *b);
|
||||
extern void * /*Lstrcat*/ Li__Infix_4343(aint *args /* void *a, void *b */);
|
||||
|
||||
void *Lsprintf(char *fmt, ...);
|
||||
void *LgetEnv(char *var);
|
||||
|
|
|
|||
|
|
@ -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