5 ms·
It can be improved, here's my version from a c program but can be used in objc in the say way. http://pastebin.com/nbgdaGXJ http://pastebin.com/nbgdaGXJ
by kqueue 16y ago
It can be improved, here's my version from a c program but can be used in objc in the say way.
http://pastebin.com/nbgdaGXJ http://pastebin.com/nbgdaGXJ
- alecthomas 16y agoIIUC, your implementation does not solve the same problem. The OP's implementation automatically determines the correct format string from the type of the variable. So you can simply do: LOG_EXPR(some_int); LOG_EXPR(some_float); LOG_EXPR(some_complex_cocoa_type);