blob: 2cfa16b8043b6bbee35ab159787c67bda3b028c6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#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;
}
|