summaryrefslogtreecommitdiff
path: root/ver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ver.c')
-rw-r--r--ver.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ver.c b/ver.c
new file mode 100644
index 0000000..ae2c329
--- /dev/null
+++ b/ver.c
@@ -0,0 +1,18 @@
+#include "nasm.h"
+#include "version.h"
+
+/* This is printed when entering nasm -v */
+const char nasm_version[] = NASM_VER;
+const char nasm_date[] = __DATE__;
+const char nasm_compile_options[] = ""
+#ifdef DEBUG
+ " with -DDEBUG"
+#endif
+ ;
+
+/* These are used by some backends. */
+const char nasm_comment[] =
+ "The Netwide Assembler " NASM_VER;
+
+const char nasm_signature[] =
+ "NASM " NASM_VER;