2012-11-10 20:59:00 +00:00
|
|
|
/* The Lunatic Interpreter, part of EDuke32. Editor stuff. */
|
2012-10-07 15:25:52 +00:00
|
|
|
|
|
|
|
#include <lualib.h>
|
|
|
|
|
|
|
|
#include "lunatic_m32.h"
|
|
|
|
|
|
|
|
|
2012-11-10 20:59:00 +00:00
|
|
|
static void Em_StateSetup(lua_State *L)
|
2012-10-07 15:25:52 +00:00
|
|
|
{
|
|
|
|
luaL_openlibs(L);
|
2012-11-10 20:59:00 +00:00
|
|
|
L_SetupDebugTraceback(L);
|
2012-10-07 15:25:52 +00:00
|
|
|
}
|
|
|
|
|
2012-11-10 20:59:00 +00:00
|
|
|
|
|
|
|
int Em_CreateState(L_State *estate)
|
2012-10-07 15:25:52 +00:00
|
|
|
{
|
2012-11-10 20:59:00 +00:00
|
|
|
return L_CreateState(estate, "m32", &Em_StateSetup);
|
2012-10-07 15:26:04 +00:00
|
|
|
}
|
|
|
|
|
2012-11-10 20:59:00 +00:00
|
|
|
void Em_DestroyState(L_State *estate)
|
2012-10-07 15:26:04 +00:00
|
|
|
{
|
2012-11-10 20:59:00 +00:00
|
|
|
L_DestroyState(estate);
|
2012-10-07 15:25:52 +00:00
|
|
|
}
|