mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Prefer C++ constructs to C-style sizeof-based macros
This commit is contained in:
@@ -29,7 +29,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
char const *get_package_version_string() {
|
||||
if constexpr (QUOTEDSTRLEN(BUILD_VERSION_STRING) > 0) {
|
||||
if constexpr (literal_strlen(BUILD_VERSION_STRING) > 0) {
|
||||
return BUILD_VERSION_STRING;
|
||||
}
|
||||
// Fallback if version string can't be obtained from Git
|
||||
|
||||
Reference in New Issue
Block a user