diff --git a/consts.c b/consts.c index fe01ea4..a55b005 100644 --- a/consts.c +++ b/consts.c @@ -2,6 +2,4 @@ #define CONSTS #define VERSION 4 -#endif /* ifndef CONSTS -#define CONSTS -#define VERSION 2; */ +#endif diff --git a/njvm.c b/njvm.c index 6b800ed..5c14b90 100644 --- a/njvm.c +++ b/njvm.c @@ -1,5 +1,6 @@ #include #include +#include "consts.c" #include "instruktion.c" #include "code.c" #include "stack.c" @@ -15,7 +16,7 @@ int fp; int debug = 0; void version(void) { - printf("Ninja Virtual Machine version %i (compiled %s, %s)\n", 0, __DATE__, __TIME__); + printf("Ninja Virtual Machine version %i (compiled %s, %s)\n", VERSION, __DATE__, __TIME__); } void help(void) {