diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-27 19:13:51 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-27 19:13:51 -0700 |
commit | 883afc9be02cc90e8644870288ad670a02986669 (patch) | |
tree | 2a9b46537edf0aab4cb69abe461b7b2d17a691a2 /unwind.c | |
parent | 77d1199f8a7d7a5be06d8dfa0b0394f803fd8525 (diff) | |
download | txr-883afc9be02cc90e8644870288ad670a02986669.tar.gz txr-883afc9be02cc90e8644870288ad670a02986669.tar.bz2 txr-883afc9be02cc90e8644870288ad670a02986669.zip |
lib: diagnostic functions moved out of arith.c.
* arith.c (invalid_ops, invalid_op): Static functions removed.
* unwind.c (invalid_oips, invalid_op): Functions added here,
as external functions.
* unwind.h (invalid_oips, invalid_op): Declared.
Diffstat (limited to 'unwind.c')
-rw-r--r-- | unwind.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -848,6 +848,17 @@ val type_mismatch(val fmt, ...) abort(); } +NORETURN void invalid_ops(val self, val obj1, val obj2) +{ + uw_throwf(type_error_s, lit("~a: invalid operands ~s ~s"), self, + obj1, obj2, nao); +} + +NORETURN void invalid_op(val self, val obj) +{ + uw_throwf(type_error_s, lit("~a: invalid operand ~s"), self, obj, nao); +} + val uw_defer_warning(val args) { val msg = car(args); |