@CONNECT_SPD I added assertions: https://git.sr.ht/~qpfiffer/lair/commit/57ba725136b7161e2f06b4a0e319cb51e6273372
sourcehut Log in — Register ~qpfiffer summary tree log refs 57ba725136b7161e2f06b4a0e319cb51e6273372 — Quinlan Pfiffer a minute ago db88921 syntax_update_2023 Assert works! patch browse 4 files changed, 7 insertions(+), 3 deletions(-) M include/error.h M src/error.c M src/lair_std.c M src/parse.c M include/error.h => include/error.h +1 -0 @@ 6 ,6 6 ,7 @@ struct _lair_runtime; typedef enum { ERR_PARSE, ERR_SYNTAX, + ERR_ASSERT, ERR_RUNTIME } ERROR_TYPE; M src/error.c => src/error.c +1 -0 @@ 11 ,6 11 ,7 @@ static inline const char *_friendly_err(const ERROR_TYPE err) { switch (err) { case ERR_PARSE: return "ERR_PARSE"; + case ERR_ASSERT: return "ERR_ASSERT"; case ERR_RUNTIME: return "ERR_RUNTIME"; case ERR_SYNTAX: return "ERR_SYNTAX"; default: return "ERROR"; M src/lair_std.c ...