public static int SetBreakPoint(IntPtr L) { int count = LuaDLL.lua_gettop(L); const int nRet = 0; if (count == 1 && LuaScriptMgr.CheckTypes(L, 1, typeof(int))) { int type = (int)LuaScriptMgr.GetNumber(L, 1); PlatformControl.SetBreakPoint(type); } else if (count == 1 && LuaScriptMgr.CheckTypes(L, 1, typeof(string))) { string strPoint = LuaScriptMgr.GetString(L, 1); PlatformControl.SetBreakPoint(strPoint); } else { LogParamError("SetBreakPoint", count); } return(GameUtilWrap.CheckReturnNum(L, count, nRet)); }