mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 02:59:10 +00:00
Codechange: [Script] replace some enums with constexpr values of the internal type
This commit is contained in:
@@ -574,6 +574,10 @@ foreach(LINE IN LISTS SOURCE_LINES)
|
||||
list(APPEND CONST_VALUES "${CMAKE_MATCH_1}")
|
||||
continue()
|
||||
endif()
|
||||
if("${LINE}" MATCHES "^[ ]*static constexpr [^ ]+ ([^ ]+) = -?\\(?[^ ]*\\)?[^ ]+;")
|
||||
list(APPEND CONST_VALUES "${CMAKE_MATCH_1}")
|
||||
continue()
|
||||
endif()
|
||||
|
||||
# Add a method to the list
|
||||
if("${LINE}" MATCHES "^.*\\(.*\\).*$")
|
||||
|
Reference in New Issue
Block a user