Macro with set

Peter N Lewis peter at stairways.com.au
Thu Nov 10 06:42:03 CET 2005


Given the Macro definition (which I suspect is more or less irrelevent)

{$definec Assert(b) AssertCode((b), __FILE__, __LINE__)}

The line:

Assert( overwrite_folder in [FOF_Merge, FOF_Overwrite] );

Gives the error:

macro `Assert' used with too many (2) args

Adding a bracket to the assertion call:

Assert( (overwrite_folder in [FOF_Merge, FOF_Overwrite]) );

Resolves the problem.

I guess it could be argued that there are two parameters

"overwrite_folder in [FOF_Merge" and "FOF_Overwrite]"

but clearly the macro code is handling () bracketing, should it also 
handle [] bracketing perhaps?

Thanks,
    Peter.

-- 
<http://www.stairways.com/>  <http://download.stairways.com/>




More information about the Gpc mailing list