forked from moai/moai-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhost.cpp
More file actions
46 lines (35 loc) · 1.18 KB
/
Copy pathhost.cpp
File metadata and controls
46 lines (35 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) 2010-2017 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include <moai-core/headers.h>
#include <moai-luaext/host.h>
extern "C" {
extern int luaopen_crypto ( lua_State *L );
extern int luaopen_lfs ( lua_State *L );
//extern int luaopen_luacurl ( lua_State *L );
extern int luaopen_luasql_sqlite3 ( lua_State *L );
extern int luapreload_fullluasocket ( lua_State *L );
}
//================================================================//
// aku-luaext
//================================================================//
//----------------------------------------------------------------//
void AKULuaExtAppFinalize () {
}
//----------------------------------------------------------------//
void AKULuaExtAppInitialize () {
}
//----------------------------------------------------------------//
void AKULuaExtContextInitialize () {
MOAIScopedLuaState state = MOAILuaRuntime::Get ().State ();
// #if MOAI_WITH_LIBCRYPTO
// luaopen_crypto ( state );
// #endif
#if MOAI_WITH_CURL
luaopen_luacurl ( state );
#endif
#if MOAI_WITH_SQLITE
luaopen_luasql_sqlite3 ( state );
#endif
luaopen_lfs ( state );
luapreload_fullluasocket ( state );
}