REV 1975 [SoftwareDriver2_helper.h]

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

REV 1975 [SoftwareDriver2_helper.h]

Post by BlindSide »

Line 121:

Code: Select all

u32 x = core::IR ( f );
->

Code: Select all

u32 x = IR ( f );
MSVC 2005 throws an error because IR is a pre-processor definition, and it doesn't like the namespace thing next to it:

Code: Select all

SoftwareDriver2_helper.h(121) : error C2589: '(' : illegal token on right side of '::'
So basically it's seeing:

Code: Select all

u32 x = core:: (u32&) f ;
Which doesn't make a whole lot of sense...
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

Indeed, especially when defines cannot be put into a namespace (they are global despite the namespace).
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

The define is only used with IRR_FASTMATH or whatever this mode is called, and it has several pitfalls. If nt enabled, there's a proper inline function in the namespace. I guess burningswater will cope with this issue soon. Maybe submit a bug ticket for it.
Post Reply