Skip to content

Instantly share code, notes, and snippets.

@serkodev
Created November 5, 2018 10:53
Show Gist options
  • Select an option

  • Save serkodev/3ab58edda90dd0b5a46c7e24c5fc7f86 to your computer and use it in GitHub Desktop.

Select an option

Save serkodev/3ab58edda90dd0b5a46c7e24c5fc7f86 to your computer and use it in GitHub Desktop.
Obj-C Line Break String
#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