|
![](/i/fill.gif) |
In article <41d436b0@news.povray.org>, Warp <war### [at] tag povray org>
wrote:
>>kurtz le pirate <kur### [at] yahoo fr> wrote:
>>> - macro in pov is not the same as macro in c. there is no "code
>>> substitution".
>>
>> There is and there isn't. It's a bit complicated. See my other post
>>on the subject.
yes you're right but in c, macro is for the pre-processor and c has
real functions. in sdl pov, there is no "real" function.
for exemple max() in c is a macro defined by
#define max(a,b) (a>=b?a:b)
when in c source there is a line like that :
foo=max(big,small)
before compiling, the pre-processor transforme the line to :
foo=(big>=small?big:small)
not the same mechanic than sdl pov as you say in your previous post.
klp
Post a reply to this message
|
![](/i/fill.gif) |