We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d7c86 commit 8b3c982Copy full SHA for 8b3c982
LICENSE
src/service.c
@@ -8,6 +8,12 @@
8
#include <lauxlib.h>
9
#include <lualib.h>
10
11
+#ifndef LTASK_EXTERNAL_OPENLIBS
12
+#define LTASK_EXTERNAL_OPENLIBS luaL_openlibs
13
+#else
14
+void LTASK_EXTERNAL_OPENLIBS(lua_State *L);
15
+#endif
16
+
17
#include <stdlib.h>
18
#include <assert.h>
19
#include <stdio.h>
@@ -132,7 +138,7 @@ init_service(lua_State *L) {
132
138
void *ud = lua_touserdata(L, 1);
133
139
size_t sz = lua_tointeger(L, 2);
134
140
init_service_key(L, ud, sz);
135
- luaL_openlibs(L);
141
+ LTASK_EXTERNAL_OPENLIBS(L);
136
142
lua_gc(L, LUA_GCGEN, 0, 0);
137
143
return 0;
144
}
0 commit comments