logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
PRC compiler 2.0: e

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
the.gray.fox



Joined: 11 Dec 2009
Posts: 21

PostPosted: Mon Apr 12, 2010 17:36    Post subject: PRC compiler 2.0: e Reply with quote

Anyone knows what the e parameter does, specifically?

All I read is: enable non-BioWare extensions.
But no detail is given.
On the PRC website I find no page where they talk of the compiler.

I have loosely tried with bitfields, unions, typecasts, ctors and dtors, references, arrays and even pointers.
None would compile, so I wonder what these "extensions" are.

Thanks.


-fox
Back to top
View user's profile Send private message
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Mon Apr 12, 2010 21:49    Post subject: Reply with quote

Tracing through the source, it seems that the only part where this actually matters is:

Code:
if (fEnableExtensions || nVersion >= 999)
  NscAddToken ("const", CONST);


In other words, it seems like it enables the "const" keyword. Odd. Why is this an option, I wonder? In any case, it's probably a good idea to have the e switch turned on when compiling.
Back to top
View user's profile Send private message
the.gray.fox



Joined: 11 Dec 2009
Posts: 21

PostPosted: Tue Apr 13, 2010 14:48    Post subject: Reply with quote

I thank you.
Maybe the const keyword is being enabled for declaration inside function scope :-/
I am guessing. Can not test from here.


-fox
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group