bool Requestor::RegisterToLua(lua_State* L){ CLASS_FUNC func[2] ={ { "reply", &_Reply}, { "replyByObject", &_ReplyByObject}, }; return register_class_to_lua(L, "Core", "Requestor", MAKE_LUA_METATABLE_NAME(core::Requestor), 0, 0, 0, 2, func, 0, 0 ); }
bool MysqlForLua::RegisterToLua(lua_State* L){ CLASS_FUNC func[8] ={ { "New", &_New}, { "connect", &_Connect}, { "disconnect", &_Disconnect}, { "good", &_Good}, { "query", &_Query}, { "exec", &_Exec}, { "lastInsertId", &_LastInsertId}, { "affectedRows", &_AffectedRows}, }; return register_class_to_lua(L, "Core", "Mysql", MAKE_LUA_METATABLE_NAME(core::MysqlForLua), 0, 1, func, 7, func+1, 0, 0 ); }