aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2017-01-02 10:10:26 +0100
committerGertjan van den Burg <burg@ese.eur.nl>2017-01-02 10:10:26 +0100
commit04bbfeee114140829271ff508f59993ed90f9086 (patch)
treea14871ff6db141409d39a262df3eb3582d993e18 /include
parentalways run coverage when making docs (diff)
downloadgensvm-04bbfeee114140829271ff508f59993ed90f9086.tar.gz
gensvm-04bbfeee114140829271ff508f59993ed90f9086.zip
fix for string version
Diffstat (limited to 'include')
-rw-r--r--include/gensvm_globals.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/gensvm_globals.h b/include/gensvm_globals.h
index 1aca458..83eb41f 100644
--- a/include/gensvm_globals.h
+++ b/include/gensvm_globals.h
@@ -120,4 +120,18 @@ typedef enum {
*/
#define matrix_mul(M, cols, i, j, val) M[(i)*(cols)+j] *= val
+// ######################### Other Macros ################################# //
+
+// from: http://stackoverflow.com/q/195975/
+
+#define GENSVM_QUOTE(name) #name
+#define GENSVM_STRING(macro) GENSVM_QUOTE(macro)
+
+#ifndef VERSION
+ #define VERSION 0.0.0
+#endif
+
+#define VERSION_STRING GENSVM_STRING(VERSION)
+
+
#endif