|
|
In article <397D11B1.18DE50F5@tiac.net> , Alex Vandiver <van### [at] tiacnet>
wrote:
> #macro a(foo)
> #if (foo)
> #macro b()
> // do one thing
> #end // macro b, first possibility
> #else
> #macro b()
> // do something else
> #end // macro b, second possibility
> #end // if statement
> #end // macro a
>
> ..which unfortunatly can't be unrolled in the way you describe.
Yes it can:
#macro b_version1()
// do one thing
#end // macro b, first possibility
#macro b_version2()
// do something else
#end // macro b, second possibility
#macro a(foo)
#if (foo)
// call b_version1
#else
// call b_version2
#end // if statement
#end // macro a
Post a reply to this message
|
|