From a640360d0d768be7d69f39780e75f59fdfe4a19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jefferson=20Gonz=C3=A1lez?= Date: Thu, 22 Sep 2022 20:30:24 -0400 Subject: [PATCH] api: expose api_load_libs to native plugins (#1125) This function is currently needed for the threading plugin. --- src/api/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),