Backport from xs.

This commit is contained in:
default 2023-06-15 17:39:38 +02:00
parent 25ca709e48
commit 8d9289a815
2 changed files with 10 additions and 1 deletions

9
xs.h
View file

@ -132,9 +132,18 @@ int xs_is_hex(const char *str);
#define XS_ASSERT_TYPE_NULL(v, t) (void)(0)
#endif
extern xs_val xs_stock_null[];
extern xs_val xs_stock_true[];
extern xs_val xs_stock_false[];
#ifdef XS_IMPLEMENTATION
xs_val xs_stock_null[] = { XSTYPE_NULL };
xs_val xs_stock_true[] = { XSTYPE_TRUE };
xs_val xs_stock_false[] = { XSTYPE_FALSE };
void *_xs_realloc(void *ptr, size_t size, const char *file, int line, const char *func)
{
d_char *ndata = realloc(ptr, size);

View file

@ -1 +1 @@
/* 5c255b45c8cd5d6c01c983b03e635936db12da03 */
/* bc5b36414b704fe4cd07f2be58133b82330ce435 */