Getting ready for 2.1. (#1181)

* Getting ready for 2.1.

* Fixed version.

* Year.

* Manually added line as takase said to.

* Fixed minor issue at takase's behest.

* Dunno where that went.

* Updated to use a function pointer.

* OK, as discussed, adding this manually for now.

* Updated SDL.
This commit is contained in:
Adam
2022-11-02 03:38:58 +01:00
committed by GitHub
parent 3bd567f5e1
commit 9951e785b6
7 changed files with 25 additions and 13 deletions
+4 -1
View File
@@ -3,7 +3,7 @@
##### CONFIG
# symbols to ignore
IGNORE_SYM='luaL_pushmodule\|luaL_openlib'
IGNORE_SYM='luaL_pushmodule'
##### CONFIG
@@ -98,6 +98,8 @@ generate_header() {
decl "$LUA_PATH/lua.h"
echo
decl "$LUA_PATH/lauxlib.h"
echo "static void (*luaL_openlibs) (lua_State *L);"
echo 'static void __lite_xl_fallback_luaL_openlibs (lua_State *L) { fputs("warning: luaL_openlibs is a stub", stderr); }'
echo
echo "#define IMPORT_SYMBOL(name, ret, ...) name = (name = (ret (*) (__VA_ARGS__)) symbol(#name), name == NULL ? &__lite_xl_fallback_##name : name)"
@@ -106,6 +108,7 @@ generate_header() {
decl_import "$LUA_PATH/lua.h"
decl_import "$LUA_PATH/lauxlib.h"
echo -e "\tIMPORT_SYMBOL(luaL_openlibs, void, lua_State* L);"
echo "}"
echo "#endif"