aboutsummaryrefslogtreecommitdiffstats
path: root/libluiml.c
blob: 468cc60b8d55bbe5eab0c9bebe2f5ed22c19e940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <lauxlib.h>
#include <lua.h>

#include "window.h"

__attribute__((visibility ("default")))
int luaopen_libluiml(lua_State *L)
{
	static const struct luaL_Reg libluiml[] = {
		{"create_window", create_window},
		{NULL, NULL},
	};

	lua_createtable(L, 0, 1);
	luaL_register(L, NULL, libluiml);

	return 1;
}