Пример #1
0
        public static void Assert(bool condition)
        {
#if UNILUA_ASSERT
            if (!condition)
            {
                Throw("assert failed!");
            }
            DebugS.Assert(condition);
#endif
        }
Пример #2
0
        public static void Assert(bool condition, string message, string detailMessage)
        {
#if UNILUA_ASSERT
            if (!condition)
            {
                Throw("assert failed! ", message, "\n", detailMessage);
            }
            DebugS.Assert(condition, message, detailMessage);
#endif
        }
Пример #3
0
        public static void Assert(bool condition, string message, string detailMessage)
        {
#if UNILUA_ASSERT
            if (!condition)
            {
                Throw("assert failed! ", message, "\n", detailMessage);
            }
#if NETFX_CORE && UNITY_METRO && !UNITY_EDITOR
            DebugS.Assert(condition, message);
#else
            DebugS.Assert(condition, message, detailMessage);
#endif
#endif
        }