LuPPC/include/lupi.h

16 lines
512 B
C
Raw Normal View History

2016-01-05 04:20:40 +11:00
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#ifndef LUPI_H
#define LUPI_H
2016-01-07 02:58:05 +11:00
//TODO: move to utils
#define pushstuple(state, name, value) lua_pushstring((state), (name)); lua_pushstring((state), (value)); lua_settable((state), -3)
#define pushctuple(state, name, value) lua_pushstring((state), (name)); lua_pushcfunction((state), (value)); lua_settable((state), -3)
2016-01-05 04:20:40 +11:00
void run_init();
2016-01-07 03:16:09 +11:00
void luanative_start(lua_State *L);
2016-01-05 04:20:40 +11:00
void setup_modules(lua_State *L);
2016-01-07 02:58:05 +11:00
void termutils_start(lua_State *L);
2016-01-05 04:20:40 +11:00
#endif