2014-12-22 12:35:05 +01:00
|
|
|
// Lua EGC (Emergeny Garbage Collector) interface
|
|
|
|
|
|
|
|
#include "legc.h"
|
|
|
|
#include "lstate.h"
|
|
|
|
#include "c_types.h"
|
|
|
|
|
2015-01-05 03:09:51 +01:00
|
|
|
void legc_set_mode(lua_State *L, int mode, unsigned limit) {
|
2014-12-22 12:35:05 +01:00
|
|
|
global_State *g = G(L);
|
|
|
|
|
|
|
|
g->egcmode = mode;
|
|
|
|
g->memlimit = limit;
|
|
|
|
}
|
|
|
|
|