The change makes sense and I don't have any code that needs editing for this.
I'm seeing some issues though trying to use the enums within Swift. When I use the C enums, they run successfully but don't print correctly. For the Objective-C enums, with Swift it fails during linking.
public class MyClass {
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY
}
}
C Enum prints enum class name, not the value
let mon: MyClass_Day = MyClass_Day.MONDAY
let tue: MyClass_Day = MyClass_Day.TUESDAY
print("Enums: \(mon), \(tue)")
It now prints the class name and not the enum value or string:
"Enums: MyClass_Day - MyClass_Day"
They are two distinct values and comparison shows them as being
different
Objective-C Enum compiles in Swift but fails to link
let mon: MyClass_DayEnum = MyClass_DayEnum_get_MONDAY()
This autocompletes in Swift and compiles... but fails at link time:
Undefined symbols for architecture arm64:
"_MyClass_DayEnum_get_MONDAY", referenced from:
...
ld: symbol(s) not found for architecture arm64