mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-18 18:21:38 +00:00
3bcdc5acb8
On the engine side (functions starting with L_), there are now the basic parts like state creation and running code from strings and files. The game and editor can add to that by e.g. loading whatever they please into the state. Their functions start with El_ and Em_, respectively. The Lua scripts still reside in source/lunatic, even for the common ones. This is because they will be embedded into the binaries as bytecode or compressed source eventually, so their location on disk will be irrelevant. git-svn-id: https://svn.eduke32.com/eduke32@3148 1a8010ca-5511-0410-912e-c29ae57300e0
23 lines
377 B
C
23 lines
377 B
C
/* The Lunatic Interpreter, part of EDuke32. Editor stuff. */
|
|
|
|
#include <lualib.h>
|
|
|
|
#include "lunatic_m32.h"
|
|
|
|
|
|
static void Em_StateSetup(lua_State *L)
|
|
{
|
|
luaL_openlibs(L);
|
|
L_SetupDebugTraceback(L);
|
|
}
|
|
|
|
|
|
int Em_CreateState(L_State *estate)
|
|
{
|
|
return L_CreateState(estate, "m32", &Em_StateSetup);
|
|
}
|
|
|
|
void Em_DestroyState(L_State *estate)
|
|
{
|
|
L_DestroyState(estate);
|
|
}
|