summaryrefslogtreecommitdiff
path: root/include/tinyff/common.h
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-10 19:34:14 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-10 19:34:14 +1100
commit30568b2d0f38b73646bbc32f95259f74354660d4 (patch)
tree08d25fef203837c5da3c99903eb7bde4ef5c8de6 /include/tinyff/common.h
parent4507e8caa27156c25b0bfb10c034f15378dab254 (diff)
refactor(common): Add a context base for every ff_*_ctx
Diffstat (limited to 'include/tinyff/common.h')
-rw-r--r--include/tinyff/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tinyff/common.h b/include/tinyff/common.h
index 0c04ce9..df6e841 100644
--- a/include/tinyff/common.h
+++ b/include/tinyff/common.h
@@ -6,6 +6,13 @@
#include <stdint.h>
#include <stdbool.h>
+// Context bases
+// Default
+#define FF_BASE \
+ bool valid; \
+ ff_result last_error;
+
+
// Flags
typedef bool ff_flag;