*renamed _CANGC to _GCNOW.
This commit is contained in:
parent
f9c0dcac31
commit
68c3b20d01
@ -1703,9 +1703,9 @@ static void _real_to_str(real_t r, char* str, size_t size, size_t afterpoint);
|
|||||||
default: break; \
|
default: break; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
#ifndef _CANGC
|
#ifndef _GCNOW
|
||||||
# define _CANGC(__s) (!!(__s))
|
# define _GCNOW(__s) (!!(__s))
|
||||||
#endif /* _CANGC */
|
#endif /* _GCNOW */
|
||||||
#ifndef _PREVGC
|
#ifndef _PREVGC
|
||||||
# define _PREVGC(__s, __g) do { ((void)(__s)); ((void)(__g)); } while(0)
|
# define _PREVGC(__s, __g) do { ((void)(__s)); ((void)(__g)); } while(0)
|
||||||
#endif /* _PREVGC */
|
#endif /* _PREVGC */
|
||||||
@ -6781,7 +6781,7 @@ static void _gc_swap_tables(mb_interpreter_t* s) {
|
|||||||
|
|
||||||
/* Try trigger garbage collection */
|
/* Try trigger garbage collection */
|
||||||
static void _gc_try_trigger(mb_interpreter_t* s) {
|
static void _gc_try_trigger(mb_interpreter_t* s) {
|
||||||
if(!_CANGC(s))
|
if(!_GCNOW(s))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_ht_count(s->gc.table) >= MB_GC_GARBAGE_THRESHOLD)
|
if(_ht_count(s->gc.table) >= MB_GC_GARBAGE_THRESHOLD)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user