robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
0ff58d1bb9
master
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 ) { 8lua_getglobal (L ,"vim" ); 9luaopen_mpack (L ); 10lua_setfield (L ,-2 ,"mpack" ); 11 12int luaopen_lpeg (lua_State * ); 13luaopen_lpeg (L ); 14lua_setfield (L ,-3 ,"lpeg" ); 15lua_pop (L ,2 ); 16 17return 1 ; 18}