public void ThrowLuaException(Exception e) { if (LuaException.InstantiateCount > 0 || LuaException.SendMsgCount > 0) { LuaDLL.toluaL_exception(L, e); } else { throw e; } }