You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Move VERSION_MKSTRING logic to version.h
Fixes a bug where the VERSION_PATCH define is not yet in scope if typedefs.h is included before version.h at compilation time.
This commit is contained in:
@@ -1093,7 +1093,7 @@ def update_version():
|
||||
print("Using custom revision: " + rev)
|
||||
import version
|
||||
|
||||
f = open("core/version.h", "wb")
|
||||
f = open("core/version_generated.h", "wb")
|
||||
f.write("#define VERSION_SHORT_NAME " + str(version.short_name) + "\n")
|
||||
f.write("#define VERSION_NAME " + str(version.name) + "\n")
|
||||
f.write("#define VERSION_MAJOR " + str(version.major) + "\n")
|
||||
|
||||
Reference in New Issue
Block a user