From 69d41fa068a08fcb468bd50babc43178faf0e114 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 18 Feb 2024 14:53:52 -0500 Subject: Add source information to runtime errors --- builtins/functions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'builtins/functions.h') diff --git a/builtins/functions.h b/builtins/functions.h index bb8b563b..6342c47d 100644 --- a/builtins/functions.h +++ b/builtins/functions.h @@ -9,8 +9,9 @@ extern const char *SSS_HASH_VECTOR; void fail(CORD fmt, ...); +void fail_source(const char *filename, int64_t start, int64_t end, CORD fmt, ...); CORD builtin_last_err(); -void __doctest(void *expr, TypeInfo *type, CORD expected, const char *filename, int start, int end); +public void __doctest(void *expr, TypeInfo *type, CORD expected, const char *filename, int64_t start, int64_t end); uint32_t generic_hash(const void *obj, const TypeInfo *type); int32_t generic_compare(const void *x, const void *y, const TypeInfo *type); -- cgit v1.2.3