Example:
enforceMonaco(pid > 0, "PID must be positive");void enforceMonaco(bool condition, string message, string file = __FILE__, size_t line = __LINE__) @safeEnforces that a condition is true, throwing a MonacoException if not.
condition | The condition to check. |
message | The error message if the condition is false. |
file | The source file where enforcement occurs. |
line | The line number where enforcement occurs. |
Example:
enforceMonaco(pid > 0, "PID must be positive");