From 68c3b20d01df134d3b609341368cc29a03430c27 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Thu, 16 Nov 2017 11:22:24 +0800 Subject: [PATCH] *renamed _CANGC to _GCNOW. --- core/my_basic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/my_basic.c b/core/my_basic.c index e79c5cf..604f755 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -1703,9 +1703,9 @@ static void _real_to_str(real_t r, char* str, size_t size, size_t afterpoint); default: break; \ } \ } -#ifndef _CANGC -# define _CANGC(__s) (!!(__s)) -#endif /* _CANGC */ +#ifndef _GCNOW +# define _GCNOW(__s) (!!(__s)) +#endif /* _GCNOW */ #ifndef _PREVGC # define _PREVGC(__s, __g) do { ((void)(__s)); ((void)(__g)); } while(0) #endif /* _PREVGC */ @@ -6781,7 +6781,7 @@ static void _gc_swap_tables(mb_interpreter_t* s) { /* Try trigger garbage collection */ static void _gc_try_trigger(mb_interpreter_t* s) { - if(!_CANGC(s)) + if(!_GCNOW(s)) return; if(_ht_count(s->gc.table) >= MB_GC_GARBAGE_THRESHOLD)