hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 9054651a537765e32aecf53d65be32f12476b871
parent 68cc24d912c3bf5636ad9633c9d831630f7a09b8
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 23 May 2021 22:19:34 -0400

rt::abort: add new abort reason

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mrt/abort.ha | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/rt/abort.ha b/rt/abort.ha @@ -4,9 +4,10 @@ export @noreturn @symbol("rt.abort") fn _abort(msg: str) void = { // See harec:include/gen.h const reasons: [_]str = [ - "slice or array access out of bounds", // 0 - "type assertion failed", // 1 - "out of memory", // 2 + "slice or array access out of bounds", // 0 + "type assertion failed", // 1 + "out of memory", // 2 + "static insert/append exceeds slice capacity", // 3 ]; export @noreturn fn abort_fixed(loc: str, i: int) void = {