summaryrefslogtreecommitdiff
path: root/thunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'thunk.h')
-rw-r--r--thunk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/thunk.h b/thunk.h
index dd80e84..ef868ab 100644
--- a/thunk.h
+++ b/thunk.h
@@ -375,7 +375,11 @@ struct thunk_t {
* wrapped thunk_t. Calls to this function may then be supplied to anything
* accepting a (thunk_t *) by simply wrapping the call with THUNK().
*/
-#define THUNK_DEFINE(_name, ...) \
+
+/* This is the static variant for private everything static placed local to the
+ * function definition, all in one place in one fell swoop.
+ */
+#define THUNK_DEFINE_STATIC(_name, ...) \
static int _THUNK_GEN_PROTO(_name, __VA_ARGS__); \
typedef struct __thunk_environment_##_name { \
/* struct for encapsulating the calling environment */ \
© All Rights Reserved