Issue
Is there a way to use another char than #
when defining preprocessor directives? Example:
Instead of:
#if 1
foo
#endif
Use ?
, for example:
?if 1
foo
?endif
Solution
There are trigraph sequences that exists to replace certain characters. In particular, the #
character can be replaced with ??=
. So the following code is valid:
??=if 1
foo
??=endif
You can't however put an arbitrary replacement in place.
Answered By - dbush