static int GetChannel(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); string o = ChannelMgr.GetChannel(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }