How can I define a Objective-C macro like: #define IMPORT(ClsName)
, so that IMPORT(AManager)
expands to: #import "AManager.h"
?
Asked
Active
Viewed 30 times
0

K.F
- 97
- 4
-
1Basically you can't do what you want. See [Escaping a # symbol in a #define macro?](https://stackoverflow.com/questions/1135822/escaping-a-symbol-in-a-define-macro) – HangarRash Nov 08 '22 at 05:45