MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AssertFormat

Method AssertFormat

Source/Engine/Engine/Debug.cs:101–106  ·  view source on GitHub ↗

Assert a condition and logs a formatted error message to the Flax console on failure. Condition you expect to be true. A composite format string. Format arguments.

(bool condition, string format, params object[] args)

Source from the content-addressed store, hash-verified

99 /// <param name="format">A composite format string.</param>
100 /// <param name="args">Format arguments.</param>
101 [Conditional("FLAX_ASSERTIONS")]
102 public static void AssertFormat(bool condition, string format, params object[] args)
103 {
104 if (!condition)
105 Logger.LogFormat(LogType.Error, format, args);
106 }
107
108 /// <summary>
109 /// Assert a condition and logs a formatted error message to the Flax console on failure.

Callers

nothing calls this directly

Calls 3

FormatMethod · 0.80
LogFormatMethod · 0.45
LogMethod · 0.45

Tested by

no test coverage detected