mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Fix bug with @jump miscompile
- Remove "panic" text from unreachable() when safe mode is turned off.
This commit is contained in:
@@ -143,7 +143,9 @@ fn void panicf(String fmt, String file, String function, uint line, args...)
|
||||
**/
|
||||
macro void unreachable(String string = "Unreachable statement reached.", ...) @builtin @noreturn
|
||||
{
|
||||
$if env::COMPILER_SAFE_MODE:
|
||||
panicf(string, $$FILE, $$FUNC, $$LINE, $vasplat());
|
||||
$endif;
|
||||
$$unreachable();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user