From da0f825e44d1cec98c8ae1d2eba3da23a240676c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 22 Apr 2024 21:38:24 +0200 Subject: Remove TODO() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I realized that I can literally just call err() directly like so: err("not implemented"); It doesn’t contain position information… but I don’t really need that. --- README | 1 - include/macros.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/README b/README index a158aac..51585b3 100644 --- a/README +++ b/README @@ -78,7 +78,6 @@ FEATURES: • Functions for printing diagnostics and optionally crashing with strerror() support • macros.h - • TODO() • MIN()/MAX()/CLAMP() • Better assertion macro • More readable strcmp()/memcmp()/etc. wrappers for equality checking diff --git a/include/macros.h b/include/macros.h index 61f7ca3..4a8108e 100644 --- a/include/macros.h +++ b/include/macros.h @@ -11,8 +11,6 @@ #define streq(...) (!strcmp(__VA_ARGS__)) #define u8eq(...) (!u8cmp(__VA_ARGS__)) -#define TODO(s) err("%s:%s:%d: todo: %s", __FILE__, __func__, __LINE__, s) - #ifdef NDEBUG # include # define ASSUME(p) ((p) ? (void)0 : unreachable()) -- cgit v1.2.3