2016-01-05 04:20:40 +11:00
|
|
|
#include "luares.h"
|
|
|
|
#include "lupi.h"
|
|
|
|
#include <lua.h>
|
|
|
|
#include <lualib.h>
|
|
|
|
#include <lauxlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
void setup_modules(lua_State *L) {
|
|
|
|
lua_createtable (L, 0, 1);
|
|
|
|
|
2016-01-07 02:58:05 +11:00
|
|
|
pushstuple(L, "boot", lua_boot);
|
|
|
|
pushstuple(L, "component", lua_component);
|
|
|
|
pushstuple(L, "computer", lua_computer);
|
2016-01-07 07:32:53 +11:00
|
|
|
pushstuple(L, "eeprom", lua_eeprom);
|
|
|
|
pushstuple(L, "eepromDefault", lua_eepromDefault);
|
2016-01-10 05:39:48 +11:00
|
|
|
pushstuple(L, "filesystem", lua_filesystem);
|
2016-01-07 02:58:05 +11:00
|
|
|
pushstuple(L, "sandbox", lua_sandbox);
|
|
|
|
pushstuple(L, "textgpu", lua_textgpu);
|
|
|
|
pushstuple(L, "color", lua_util_color);
|
|
|
|
pushstuple(L, "random", lua_util_random);
|
2016-01-14 11:10:04 +11:00
|
|
|
pushstuple(L, "utf8data", lua_utf8_utf8data);
|
|
|
|
pushstuple(L, "utf8", lua_utf8_utf8);
|
2016-01-05 04:20:40 +11:00
|
|
|
|
|
|
|
lua_setglobal(L, "moduleCode");
|
|
|
|
}
|