aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJefferson González <jgmdev@gmail.com>2022-09-22 20:30:24 -0400
committerGitHub <noreply@github.com>2022-09-22 20:30:24 -0400
commita640360d0d768be7d69f39780e75f59fdfe4a19d (patch)
treef11db7996ee24d0f62ad5d38ca92a4641b926135 /src
parenta4713505f07aab510115eb98183066fdd21044d0 (diff)
downloadlite-xl-a640360d0d768be7d69f39780e75f59fdfe4a19d.tar.gz
lite-xl-a640360d0d768be7d69f39780e75f59fdfe4a19d.zip
api: expose api_load_libs to native plugins (#1125)
This function is currently needed for the threading plugin.
Diffstat (limited to 'src')
-rw-r--r--src/api/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/system.c b/src/api/system.c
index 9dfff725..cad0d12a 100644
--- a/src/api/system.c
+++ b/src/api/system.c
@@ -847,7 +847,7 @@ static void* api_require(const char* symbol) {
U(newmetatable), U(setmetatable), U(testudata), U(checkudata), U(where),
U(error), U(fileresult), U(execresult), U(ref), U(unref), U(loadstring),
U(newstate), U(setfuncs), U(buffinit), U(addlstring), U(addstring),
- U(addvalue), U(pushresult),
+ U(addvalue), U(pushresult), {"api_load_libs", (void*)(api_load_libs)},
#if LUA_VERSION_NUM >= 502
P(absindex), P(arith), P(callk), P(compare), P(getglobal),
P(len), P(pcallk), P(rawgetp), P(rawlen), P(rawsetp), P(setglobal),