nodemcu-firmware/app/lua/legc.c

14 lines
244 B
C
Raw Normal View History

// Lua EGC (Emergeny Garbage Collector) interface
#include "legc.h"
#include "lstate.h"
#include "c_types.h"
void legc_set_mode(lua_State *L, int mode, int limit) {
2019-02-17 19:26:29 +01:00
global_State *g = G(L);
g->egcmode = mode;
g->memlimit = limit;
}