diff options
| author | Jefferson González <jgmdev@gmail.com> | 2022-09-22 20:30:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-22 20:30:24 -0400 |
| commit | a640360d0d768be7d69f39780e75f59fdfe4a19d (patch) | |
| tree | f11db7996ee24d0f62ad5d38ca92a4641b926135 /src | |
| parent | a4713505f07aab510115eb98183066fdd21044d0 (diff) | |
| download | lite-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.c | 2 |
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), |
