2014-12-22 12:35:05 +01:00
|
|
|
// Lua EGC (Emergeny Garbage Collector) interface
|
|
|
|
|
|
|
|
#include "legc.h"
|
|
|
|
#include "lstate.h"
|
|
|
|
#include "c_types.h"
|
|
|
|
|
2018-04-06 14:52:03 +02:00
|
|
|
void legc_set_mode(lua_State *L, int mode, int limit) {
|
2019-02-17 19:26:29 +01:00
|
|
|
global_State *g = G(L);
|
|
|
|
|
2014-12-22 12:35:05 +01:00
|
|
|
g->egcmode = mode;
|
|
|
|
g->memlimit = limit;
|
|
|
|
}
|
|
|
|
|