1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef EDK_CONFIG_H_
- #define EDK_CONFIG_H_
- #include <string>
- #define EDK_VERSION_MAJOR @EDK_VERSION_MAJOR@
- #define EDK_VERSION_MINOR @EDK_VERSION_MINOR@
- #define EDK_VERSION_PATCH @EDK_VERSION_PATCH@
- #define EDK_GET_VERSION(major, minor, patch) (((major) << 20) | ((minor) << 10) | (patch))
- #define EDK_VERSION EDK_GET_VERSION(EDK_VERSION_MAJOR, EDK_VERSION_MINOR, EDK_VERSION_PATCH)
- namespace edk {
- std::string Version() {
-
- return std::to_string(EDK_VERSION_MAJOR) + "." +
- std::to_string(EDK_VERSION_MINOR) + "." +
- std::to_string(EDK_VERSION_PATCH);
-
- }
- }
- #endif
|