2016-09-16 10:10:18 +02:00
|
|
|
// Lua EGC (Emergeny Garbage Collector) interface
|
|
|
|
|
|
|
|
#include "legc.h"
|
|
|
|
#include "lstate.h"
|
|
|
|
|
2019-07-22 11:13:43 +02:00
|
|
|
void legc_set_mode(lua_State *L, int mode, int limit) {
|
|
|
|
global_State *g = G(L);
|
|
|
|
|
2016-09-16 10:10:18 +02:00
|
|
|
g->egcmode = mode;
|
|
|
|
g->memlimit = limit;
|
|
|
|
}
|
|
|
|
|