14 lines
271 B
C
14 lines
271 B
C
|
// Lua EGC (Emergeny Garbage Collector) interface
|
||
|
|
||
|
#include "legc.h"
|
||
|
#include "lstate.h"
|
||
|
#include "c_types.h"
|
||
|
|
||
|
void ICACHE_FLASH_ATTR legc_set_mode(lua_State *L, int mode, unsigned limit) {
|
||
|
global_State *g = G(L);
|
||
|
|
||
|
g->egcmode = mode;
|
||
|
g->memlimit = limit;
|
||
|
}
|
||
|
|