20 lines
677 B
C
20 lines
677 B
C
#pragma once
|
|
|
|
#include <gc/cord.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "types.h"
|
|
|
|
void builtin_say(CORD str, CORD end);
|
|
void builtin_fail(CORD fmt, ...);
|
|
CORD builtin_last_err();
|
|
void builtin_doctest(const char *label, CORD expr, const char *type, bool use_color, const char *expected, const char *filename, int start, int end);
|
|
|
|
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);
|
|
CORD generic_as_str(const void *obj, bool colorize, const TypeInfo *type);
|
|
|
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0
|