19 lines
324 B
C
19 lines
324 B
C
#include <lua.h>
|
|
|
|
#include "mpack/lmpack.h"
|
|
|
|
LUA_API int luaopen_nlua0(lua_State* L);
|
|
|
|
LUA_API int luaopen_nlua0(lua_State* L) {
|
|
lua_getglobal(L, "vim");
|
|
luaopen_mpack(L);
|
|
lua_setfield(L, -2, "mpack");
|
|
|
|
int luaopen_lpeg(lua_State *);
|
|
luaopen_lpeg(L);
|
|
lua_setfield(L, -3, "lpeg");
|
|
lua_pop(L, 2);
|
|
|
|
return 1;
|
|
}
|