Lodestone.Common
Loading...
Searching...
No Matches
LodestoneCommon.h
Go to the documentation of this file.
1//
2// Created by DexrnZacAttack on 10/14/25 using zPc-i2.
3//
4#ifndef LODESTONE_LODESTONECOMMON_H
5#define LODESTONE_LODESTONECOMMON_H
6
9
10namespace lodestone::common {
12 LODESTONE_MAJOR_VERSION,
13 LODESTONE_MINOR_VERSION,
14 LODESTONE_PATCH_VERSION,
15 LODESTONE_DEV_VERSION
16 };
17
18 constexpr const char *const LIBRARY_STRING =
19 "libLodestone v" LODESTONE_VERSION " (" LODESTONE_COMPILER_NAME
20 " / " LODESTONE_BUILD_TYPE " | " LODESTONE_PLATFORM_NAME
21 " " LODESTONE_PLATFORM_ARCH
22 ") | https://github.com/Team-Lodestone/libLodestone";
23
24 // clang-format off
25 extern "C" {
26 LODESTONE_API NO_DISCARD constexpr const char *lodestone_get_build_type(); // NOLINT
27 LODESTONE_API NO_DISCARD constexpr const char *lodestone_get_compiler_name(); // NOLINT
28 LODESTONE_API NO_DISCARD constexpr const char *lodestone_get_platform_arch(); // NOLINT
29 LODESTONE_API NO_DISCARD constexpr const char *lodestone_get_platform(); // NOLINT
30 LODESTONE_API NO_DISCARD constexpr const char *lodestone_get_version_string(); // NOLINT
32 LODESTONE_API NO_DISCARD constexpr const char *lodestone_get_library_string(); // NOLINT
33 }
34 // clang-format on
35} // namespace lodestone::common
36
37#endif // LODESTONE_LODESTONECOMMON_H
#define LODESTONE_API
Definition Defines.h:24
#define NO_DISCARD
Definition Defines.h:23
Definition DataBuffer.cpp:6
constexpr const char * lodestone_get_compiler_name()
Definition LodestoneCommon.cpp:12
constexpr const char *const LIBRARY_STRING
Definition LodestoneCommon.h:18
constexpr const char * lodestone_get_version_string()
Definition LodestoneCommon.cpp:15
constexpr const char * lodestone_get_build_type()
Definition LodestoneCommon.cpp:11
constexpr const char * lodestone_get_platform()
Definition LodestoneCommon.cpp:14
constexpr util::Semver lodestone_get_version()
Definition LodestoneCommon.cpp:16
constexpr const char * lodestone_get_platform_arch()
Definition LodestoneCommon.cpp:13
constexpr const char * lodestone_get_library_string()
Definition LodestoneCommon.cpp:17
constexpr util::Semver VERSION
Definition LodestoneCommon.h:11
Rough impl of a Semver class, if you can even call it that... hardly follows the specification lmao.
Definition Semver.h:21