您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
596 B
22 行
596 B
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace UIWidgets.foundation {
|
|
public static class D {
|
|
[Conditional("UIWidgets_DEBUG")]
|
|
public static void assert(Func<bool> result) {
|
|
D.assert(result());
|
|
}
|
|
|
|
[Conditional("UIWidgets_DEBUG")]
|
|
public static void assert(bool result) {
|
|
if (!result) {
|
|
throw new Exception("assertion failed. check stacktrace.");
|
|
}
|
|
}
|
|
|
|
public static bool debugPrintGestureArenaDiagnostics = true;
|
|
|
|
public static bool debugPrintHitTestResults = true;
|
|
}
|
|
}
|