|
|
Włodzimierz ABX Skiba <abx### [at] abxartpl> wrote:
> #define AVOID_NAME_COLLISION_PATCH
> and I will catch there all possible collisions with different compilators.
> Then I used in sources when needed
> #ifdef AVOID_NAME_COLLISION_PATCH
> POV_BLOB
> #else
> BLOB
> #endif
Wouldn't it just be easier to add a singe line (to config.h or wherever):
#define BLOB POV_BLOB
Nothing else is needed. The preprocessor will change all instances
of the identifier 'BLOB' to 'POV_BLOB' before giving the source to the
compiler.
(Of course that #define must be placed *after* the windows-specific
#includes which might define 'BLOB' in their own way.)
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|