You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#defineTEST_FUNC(num) myfunc( num )
#defineTEST_METHOD( ent, num ) ent mymeth( num )
myfunc( num )
{
print( num );
}
mymeth( num )
{
print( num );
}
main()
{
TEST_FUNC( 5 );
TEST_METHOD( level, 6 );
}
.\gsc-tool.exe -m comp -g iw5 -s pc .\a.gsc
GSC Tool 1.4.3.297-prod created by xensik
[ERROR]:compiler:./a.gsc:2:37: missing ';' ? at ./a.gsc
Expected behaviour:
Compilation succeeds because
ent isHost()
is a GSC method and should be replaced correctly when the macro expandsUnexpected behaviour:
Manually fixed version which proves something is wrong with the preprocessor
The text was updated successfully, but these errors were encountered: