tomo/builtins/functions.h

23 lines
734 B
C
Raw Normal View History

2024-02-04 18:13:50 -08:00
#pragma once
#include <gc/cord.h>
#include <stdbool.h>
#include <stdint.h>
2024-02-17 14:44:17 -08:00
#include "types.h"
2024-02-04 18:13:50 -08:00
2024-02-17 16:32:30 -08:00
extern const char *SSS_HASH_VECTOR;
2024-02-17 16:52:37 -08:00
void fail(CORD fmt, ...);
void fail_source(const char *filename, int64_t start, int64_t end, CORD fmt, ...);
2024-02-16 10:29:02 -08:00
CORD builtin_last_err();
2024-03-09 21:59:42 -08:00
void $test(void *expr, const TypeInfo *type, CORD expected, const char *filename, int64_t start, int64_t end);
void say(CORD text);
2024-02-04 18:13:50 -08:00
2024-02-17 14:44:17 -08:00
uint32_t generic_hash(const void *obj, const TypeInfo *type);
int32_t generic_compare(const void *x, const void *y, const TypeInfo *type);
bool generic_equal(const void *x, const void *y, const TypeInfo *type);
2024-03-03 15:16:33 -08:00
CORD generic_as_text(const void *obj, bool colorize, const TypeInfo *type);
2024-02-17 14:44:17 -08:00
2024-02-04 18:13:50 -08:00
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0