When I want use something like null object in macro parameters I use
array instead of variable:
#macro SomethingWithPossibleNullObject(Object)
#ifdef (Object[0])
// Work with it
#else
// No object
#end
#end
SomethingWithPossibleNullObject(array[1]) // Null object
SomethingWithPossibleNullObject(array[1] { sphere{<0, 0, 0>, 1 }) //
Work with sphere
Regards
Disnel
Post a reply to this message
|