diff options
-rw-r--r-- | arith.c | 11 | ||||
-rw-r--r-- | unwind.c | 11 | ||||
-rw-r--r-- | unwind.h | 2 |
3 files changed, 13 insertions, 11 deletions
@@ -132,17 +132,6 @@ static NORETURN void not_integer(val self, val obj) uw_throwf(type_error_s, lit("~a: ~s is not an integer"), self, obj, nao); } -static 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); -} - -static NORETURN void invalid_op(val self, val obj) -{ - uw_throwf(type_error_s, lit("~a: invalid operand ~s"), self, obj, nao); -} - int num_to_buffer(val num, mem_t *buf, int bytes) { switch (type(num)) { @@ -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); @@ -384,6 +384,8 @@ void uw_init(void); void uw_late_init(void); NORETURN val type_mismatch(val, ...); +NORETURN void invalid_ops(val self, val obj1, val obj2); +NORETURN void invalid_op(val self, val obj); #define uw_mark_frame \ uw_frame_t *uw_top = uw_current_frame() |