This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
InfinitShoot/binding/lua/bridge.c

21 lines
410 B
C

#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "luaconf.h"
#include "hazel/hazel.h"
static int LuaBridge_RunExampleWindow(lua_State* L) {
Hazel_RunExampleWindow();
return 0;
}
static const struct luaL_Reg hazel[] = {
{"RunExampleWindow", LuaBridge_RunExampleWindow},
{NULL, NULL},
};
DLLEXPORT int luaopen_hazel(lua_State* L) {
luaL_newlib(L, hazel);
return 1;
}