robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

bfredlMerge pull request #23216 from bfredl/lpeg0ff58d1bb9

master
324 B18 linesraw
1#include <lua.h>
2
3#include "mpack/lmpack.h"
4
5LUA_API int luaopen_nlua0(lua_State* L);
6
7LUA_API int luaopen_nlua0(lua_State* L) {
8  lua_getglobal(L, "vim");
9  luaopen_mpack(L);
10  lua_setfield(L, -2, "mpack");
11
12  int luaopen_lpeg(lua_State *);
13  luaopen_lpeg(L);
14  lua_setfield(L, -3, "lpeg");
15  lua_pop(L, 2);
16
17  return 1;
18}