aboutsummaryrefslogtreecommitdiff
path: root/chad/experimental/nargs.h
diff options
context:
space:
mode:
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