diff options
author | Danny Holman <dholman@gymli.org> | 2024-10-29 22:39:57 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-10-29 22:41:22 -0500 |
commit | a97d152c8495ccf4272c733b63747a78b0371afa (patch) | |
tree | c84f4b0182519e79e093a28645625cac6a15fad5 /core/init.c | |
parent | 6709e300385c610f14b848961c2c5afdbc9aadc0 (diff) |
build: use lib name in version macros
Use the library name in version define macros. This should prevent
collisions when using the engine alongside other libraries, as the
VERSION keyword is likely very common. In addition, create three new
macros for the major, minor and patch numbers separately. This allows
the engine to use only the part it needs, when it needs it.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'core/init.c')
-rw-r--r-- | core/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/init.c b/core/init.c index 96fee70..1a600ef 100644 --- a/core/init.c +++ b/core/init.c @@ -6,7 +6,8 @@ int rune_init(int argc, char* argv[]) { enable_log_color(); - log_output(LOG_INFO, "Started Rune Engine version %s", VERSION); + log_output(LOG_INFO, "Started Rune Engine version %s", RUNE_VER); + _parse_args(argc, argv); rune_init_thread_api(); return 0; } |