mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Adding lua+sqlite functionality in the default windows binary build
This commit is contained in:
1 parent
b21a8b2193
commit
ce0826e285
4 files changed
+139321
-22
No files matched your search
@@ -3987,6 +3987,9 @@ static void prepare_lua_environment(struct mg_connection *conn, lua_State *L) {
|
||||
int i;
|
||||
|
||||
luaL_openlibs(L);
|
||||
#ifdef USE_LUA_SQLITE3
|
||||
luaopen_lsqlite3(L);
|
||||
#endif
|
||||
|
||||
// Register "print" function which calls mg_write()
|
||||
lua_pushlightuserdata(L, conn);
|
||||
|
||||
Reference in new issue
Block a user