aboutsummaryrefslogtreecommitdiff
path: root/chad/experimental/nargs.h
diff options
context:
space:
mode:
authoranon2025-07-02 09:52:28 +0200
committeranon2025-07-02 09:52:28 +0200
commit2f381d9c24c1418af5b27243428622d4a2b9c467 (patch)
tree2a2f81475d216dead588bf691fd59a17122a9c7a /chad/experimental/nargs.h
downloadlibchad-2f381d9c24c1418af5b27243428622d4a2b9c467.tar.xz
libchad-2f381d9c24c1418af5b27243428622d4a2b9c467.tar.zst
init
Diffstat (limited to 'chad/experimental/nargs.h')
-rw-r--r--chad/experimental/nargs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chad/experimental/nargs.h b/chad/experimental/nargs.h
new file mode 100644
index 0000000..c4224c9
--- /dev/null
+++ b/chad/experimental/nargs.h
@@ -0,0 +1,20 @@
+#ifndef CHAD_NARGS_H
+#define CHAD_NARGS_H
+
+#include "nargs.h"
+#include <stdarg.h>
+
+#define _max_function(T) \
+static inline _max_function_ ## T (size_t n, ...) { \
+ va_list args; \
+ va_start(args, n); \
+ T r = 0; \
+ for (size_t i = 0; i < n; i++) { \
+ T c =
+ if ()
+ } \
+
+ return r;
+}
+
+#endif