Macaulay2 Engine
Loading...
Searching...
No Matches

◆ enter_getmem()

void enter_getmem ( )
inlinestatic

Definition at line 15 of file m2-mem.cpp.

15 {
16 #if 0
17 /* this is not always an error, because we may call GC_malloc from a finalizer */
18 if (in_getmem) fatal("internal error: getmem called while getmem active");
19 #endif
20 in_getmem = true;
21}
static __thread bool in_getmem
Definition m2-mem.cpp:14

References in_getmem.

Referenced by getmem(), getmem_atomic(), getmem_atomic_clear(), and getmem_clear().