diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-18 14:53:52 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-18 14:53:52 -0500 |
| commit | 69d41fa068a08fcb468bd50babc43178faf0e114 (patch) | |
| tree | 03febfb2e86eb81ada90a03648a8bfd5a18dc920 /builtins/functions.h | |
| parent | f77a45095a76b99c9d470bc861bd69f5cb5b8742 (diff) | |
Add source information to runtime errors
Diffstat (limited to 'builtins/functions.h')
| -rw-r--r-- | builtins/functions.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
