CPP: The preprocessor doesn't support #-commands in macro arguments.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6200
Reported by @grubba
Pike mailinglist 12869:
From: <zenothing@hotmail.com>
Date: Fri, 27 Jan 2012 14:10:44 +0800
Subject: pike complain "Unexpected end of file" when using #line in macro call
[root@brain brain4]$cat t.pike
#define A(a) class T{a};
A(class aa{
#line 2
int n;
});
void main()
{
T();
}
[root@brain brain4]$pike t.pike
t.pike:6:Missing '}'.
t.pike:6:Unexpected end of file.
t.pike:6:Missing '}'.
t.pike:6:Unexpected end of file.
Pike: Failed to compile script.
Guo Xuesong