Created
November 5, 2018 10:53
-
-
Save serkodev/3ab58edda90dd0b5a46c7e24c5fc7f86 to your computer and use it in GitHub Desktop.
Obj-C Line Break String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define __line_break_string__(s) #s | |
| NSString *str = @__line_break_string__( | |
| foo | |
| bar | |
| hello\nworld | |
| ); | |
| #undef __line_break_string__ | |
| /* | |
| foo bar hello | |
| world | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment