Artifact 9c4f9e0a4b3e2d71c405ff33d7d80e561a6b1a7a523fa3d758d9eed8f3f87c1c:
- File bind/bind.h — part of check-in [b4009ca1bd] at 2024-05-07 19:25:37 on branch trunk — unbreak build (oops sorry about that) (user: lexi, size: 485) [annotate] [blame] [check-ins using]
#pragma once #include <lua.h> #include <lauxlib.h> #include <stddef.h> #include <stdbool.h> #include <stdint.h> #define _luafn(name) static int LX_##name (lua_State* l) #define _export(name) lua_pushcfunction(l, LX_##name), lua_setfield(l, -2, #name); #define _luaret_bool(b) {lua_pushboolean(l, b); return 1;} #define _luaAPI(mod, ...) int luaopen_bind_##mod (lua_State* l) { \ lua_newtable(l); \ __VA_ARGS__; \ return 1; \ } /* this comment serves only to unfuck a GCC bug */