Skip to content

Commit

Permalink
Fixed small plugin header error.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Nov 2, 2022
1 parent 69bccf6 commit 3bd567f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/lite_xl_plugin_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
Expand Down

0 comments on commit 3bd567f

Please sign in to comment.