View previous topic :: View next topic |
Author |
Message |
the.gray.fox
Joined: 11 Dec 2009 Posts: 21
|
Posted: Mon Apr 12, 2010 17:36 Post subject: PRC compiler 2.0: e |
|
|
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 |
|
|
Fireboar
Joined: 17 Feb 2008 Posts: 323
|
Posted: Mon Apr 12, 2010 21:49 Post subject: |
|
|
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 |
|
|
the.gray.fox
Joined: 11 Dec 2009 Posts: 21
|
Posted: Tue Apr 13, 2010 14:48 Post subject: |
|
|
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 |
|
|
|