diff --git a/resources/lite_xl_plugin_api.h b/resources/lite_xl_plugin_api.h index 41a882aa..9dc83cd2 100644 --- a/resources/lite_xl_plugin_api.h +++ b/resources/lite_xl_plugin_api.h @@ -4,7 +4,7 @@ The lite_xl plugin API is quite simple. Any shared library can be a plugin file, so long as it has an entrypoint that looks like the following, where xxxxx is the plugin name: #include "lite_xl_plugin_api.h" -int lua_open_lite_xl_xxxxx(lua_State* L, void* XL) { +int luaopen_lite_xl_xxxxx(lua_State* L, void* XL) { lite_xl_plugin_init(XL); ... return 1; diff --git a/scripts/generate_header.sh b/scripts/generate_header.sh index 8d5da527..31ad5724 100755 --- a/scripts/generate_header.sh +++ b/scripts/generate_header.sh @@ -76,7 +76,7 @@ generate_header() { echo "The lite_xl plugin API is quite simple. Any shared library can be a plugin file, so long" echo "as it has an entrypoint that looks like the following, where xxxxx is the plugin name:" echo '#include "lite_xl_plugin_api.h"' - echo "int lua_open_lite_xl_xxxxx(lua_State* L, void* XL) {" + echo "int luaopen_lite_xl_xxxxx(lua_State* L, void* XL) {" echo " lite_xl_plugin_init(XL);" echo " ..." echo " return 1;"