diff --git a/xs.h b/xs.h index c9825b9..6344816 100644 --- a/xs.h +++ b/xs.h @@ -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); diff --git a/xs_version.h b/xs_version.h index b589fed..8fd8e70 100644 --- a/xs_version.h +++ b/xs_version.h @@ -1 +1 @@ -/* 5c255b45c8cd5d6c01c983b03e635936db12da03 */ +/* bc5b36414b704fe4cd07f2be58133b82330ce435 */