--- parser3/src/include/pa_memory.h 2020/12/20 20:45:24 1.42 +++ parser3/src/include/pa_memory.h 2023/09/26 20:49:07 1.44 @@ -1,15 +1,15 @@ /** @file Parser: memory reference counting classes decls. - Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) - Author: Alexandr Petrosian (http://paf.design.ru) + Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_MEMORY_H #define PA_MEMORY_H -#define IDENT_PA_MEMORY_H "$Id: pa_memory.h,v 1.42 2020/12/20 20:45:24 moko Exp $" +#define IDENT_PA_MEMORY_H "$Id: pa_memory.h,v 1.44 2023/09/26 20:49:07 moko Exp $" // include @@ -147,10 +147,7 @@ inline char *strdup(const char*, size_t) #endif // _MSC_VER -#ifdef PA_DEBUG_DISABLE_GC -#define PA_GC_GCOLLECT -#else -#define PA_GC_GCOLLECT { GC_enable(); GC_gcollect(); GC_disable(); } -#endif +void pa_gc_collect(bool forced=false); +void pa_gc_set_free_space_divisor(int); #endif