2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_GC_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_NEXGEN32E_GC_H_
|
2020-09-03 12:44:37 +00:00
|
|
|
#include "libc/nexgen32e/stackframe.h"
|
2020-06-15 14:18:57 +00:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct Garbages {
|
|
|
|
size_t i, n;
|
|
|
|
struct Garbage {
|
|
|
|
struct StackFrame *frame;
|
|
|
|
intptr_t fn;
|
|
|
|
intptr_t arg;
|
|
|
|
intptr_t ret;
|
|
|
|
} * p;
|
|
|
|
};
|
|
|
|
|
2020-08-25 11:23:25 +00:00
|
|
|
hidden extern struct Garbages g_garbage;
|
2020-06-15 14:18:57 +00:00
|
|
|
|
2020-08-25 11:23:25 +00:00
|
|
|
int64_t CollectGarbage(void) hidden;
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_GC_H_ */
|