Skip to content

Commit

Permalink
Added platform build type information on version string.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 10, 2024
1 parent a7cee55 commit 28cb015
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion include/N8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,20 @@
#include <n8/parser/ParserException.hpp>
#include <n8/util/ArgumentParser.hpp>

#ifdef __TERMUX__
# define N8_BUILD_PLATFORM "termux"
#elif defined(__linux__)
# define N8_BUILD_PLATFORM "linux"
#elif defined(__APPLE__)
# define N8_BUILD_PLATFORM "apple"
#elif defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
# define N8_BUILD_PLATFORM "windows"
#else
# define "unknown"
#endif

#define N8_BUILD_TYPE "beta"
#define N8_VERSION "v1.0.0-" N8_BUILD_TYPE
#define N8_VERSION "v1.0.0" N8_BUILD_TYPE "-" N8_BUILD_PLATFORM

#define N8_BUILD_TIME __TIME__ " " __DATE__

Expand Down

0 comments on commit 28cb015

Please sign in to comment.