mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
add error for dividing by zero in static function evaluation
This commit is contained in:
1 parent
be4df96e4b
commit
69109bc270
6 files changed
+65
-58
No files matched your search
@@ -12,6 +12,8 @@ const char *err_str(int err) {
|
||||
case ErrorFileNotFound: return "file not found";
|
||||
case ErrorFileSystem: return "file system error";
|
||||
case ErrorFileTooBig: return "file too big";
|
||||
case ErrorDivByZero: return "division by zero";
|
||||
case ErrorOverflow: return "overflow";
|
||||
}
|
||||
return "(invalid error)";
|
||||
}
|
||||
Reference in new issue
Block a user