C
cody
the following leads to an error (note that TEST is not defined):
#if TEST
string s = @"
#"; // <-- the error is "preprocessing directive expected"
#endif
also, here we get the same error:
#if TEST
/*
# */
#endif
iam not sure wheather this is a problem in the compiler or the spec, but in
my opinion even in such directives the compiler should parse comments and
verbatim string to ensure we can use #if statements everywhere and do not
have to change to code to make if work.
#if TEST
string s = @"
#"; // <-- the error is "preprocessing directive expected"
#endif
also, here we get the same error:
#if TEST
/*
# */
#endif
iam not sure wheather this is a problem in the compiler or the spec, but in
my opinion even in such directives the compiler should parse comments and
verbatim string to ensure we can use #if statements everywhere and do not
have to change to code to make if work.