$CPP Directive
Purpose: $CPP directive attempts C++ compliance in the translated code and also names the output file FileName.cpp. This directive is equivalent to using the command line -c flag.
Example:
$CPP ' Turn on CPP compliance and use .cpp filename extension TestSub(1) TestSub(1,2) TestSub(1,2,3) SUB TestSUB OPTIONAL(a,b=0,c=0) 'note these = zeros are added here PRINT IF a > 0 THEN PRINT a; IF b > 0 THEN PRINT b; IF c > 0 THEN PRINT c; PRINT END SUB
Result:
1 1 2 1 2 3: