I have something like this in objective-C class
@interface PREFIX_MyClass {
...
@end
and I would like to use a preprocessor to convert it:
@interface AwesomeMyClass {
...
@end
so something like
#define PREFIX_ Awesome
doesn't work because it's part of the word. Any other way? I know I can use something like this:
#define PrefixClass(NAME) Awesome##NAME
@interface PrefixClass(MyClass)
but I don’t like it because it interrupts the execution of the code and refers to the following dev tools (i.e.: Xcode in this case)
source
share