1
0

Added SQLite and LuaSQLite, Lua plugins can now use SQLite.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1368 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-04-07 19:28:32 +00:00
parent 92e782068f
commit 499962029a
10 changed files with 147613 additions and 4 deletions

View File

@@ -18,6 +18,16 @@ extern "C"
// fwd: SQLite/lsqlite3.c
extern "C"
{
LUALIB_API int luaopen_lsqlite3(lua_State * L);
}
bool report_errors(lua_State * lua, int status)
{
if (status == 0)
@@ -73,6 +83,7 @@ bool cPlugin_NewLua::Initialize(void)
luaL_openlibs(m_LuaState);
tolua_AllToLua_open(m_LuaState);
ManualBindings::Bind(m_LuaState);
luaopen_lsqlite3(m_LuaState);
// Inject the identification global variables into the state:
lua_pushlightuserdata(m_LuaState, this);