mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Make unreachable() only panic in safe mode.
This commit is contained in:
@@ -204,8 +204,9 @@ macro void unreachable(String string = "Unreachable statement reached.", ...) @b
|
||||
{
|
||||
$if env::COMPILER_SAFE_MODE:
|
||||
panicf(string, $$FILE, $$FUNC, $$LINE, $vasplat);
|
||||
$endif;
|
||||
$else
|
||||
$$unreachable();
|
||||
$endif
|
||||
}
|
||||
|
||||
<*
|
||||
|
||||
Reference in New Issue
Block a user