Fixed small plugin header error.
This commit is contained in:
parent
69bccf6fcf
commit
3bd567f5e1
|
@ -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;
|
||||
|
|
|
@ -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;"
|
||||
|
|
Loading…
Reference in New Issue