aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin/plugin.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-09-10 19:36:02 +0200
committerdec05eba <dec05eba@protonmail.com>2025-09-10 19:36:02 +0200
commit7880b070d7237b1f33d3d17ca3247c54a8fabba7 (patch)
tree661bfb967669f3245c79770fa1063de34f816205 /plugin/plugin.h
parentd3235a0be00b9a80077b862f96ee40f787980d46 (diff)
Plugin update macro
Diffstat (limited to 'plugin/plugin.h')
-rw-r--r--plugin/plugin.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/plugin.h b/plugin/plugin.h
index c5a5e89..902d1d7 100644
--- a/plugin/plugin.h
+++ b/plugin/plugin.h
@@ -7,7 +7,9 @@ extern "C" {
#define GSR_PLUGIN_INTERFACE_MAJOR_VERSION 0
#define GSR_PLUGIN_INTERFACE_MINOR_VERSION 1
-#define GSR_PLUGIN_INTERFACE_VERSION ((GSR_PLUGIN_INTERFACE_MAJOR_VERSION << 16) | GSR_PLUGIN_INTERFACE_MINOR_VERSION)
+
+#define GSR_PLUGIN_INTERFACE_MAKE_VERSION(major, minor) (((major) << 16) | (minor))
+#define GSR_PLUGIN_INTERFACE_VERSION GSR_PLUGIN_INTERFACE_MAKE_VERSION(GSR_PLUGIN_INTERFACE_MAJOR_VERSION, GSR_PLUGIN_INTERFACE_MINOR_VERSION)
#include <stdbool.h>