summaryrefslogtreecommitdiff
path: root/lib/std/strbuf.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-10-02 23:56:21 -0700
committerOri Bernstein <ori@eigenstate.org>2015-10-02 23:56:21 -0700
commit9dbef7492971df74e2ecd58ee02f5fe69e979149 (patch)
treeed000fb05640fea2ba8776fa5eb63417db816296 /lib/std/strbuf.myr
parent08442dd9c3426e2dbe598ef1f6fb10f2f67638aa (diff)
downloadmc-9dbef7492971df74e2ecd58ee02f5fe69e979149.tar.gz
Make assert able to take format args.
This is useful outside of libstd. Libstd mostly can't use it due to dependency loops, so we get iassert for that.
Diffstat (limited to 'lib/std/strbuf.myr')
-rw-r--r--lib/std/strbuf.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/strbuf.myr b/lib/std/strbuf.myr
index 097d1ce..3c4b51c 100644
--- a/lib/std/strbuf.myr
+++ b/lib/std/strbuf.myr
@@ -87,7 +87,7 @@ const sbputb = {sb, v
}
const sbtrim = {sb, len
- assert(abs(len) <= sb.len, "trim out of range\n")
+ iassert(abs(len) <= sb.len, "trim out of range\n")
if len < 0
sb.len -= abs(len)
else