View Full Version : L and H in constants
NewsArchive
05-07-2011, 06:27 AM
Hi Friedrich,
in the constants include script, there are numbers with a H or a L at
the end. I guess, this is for "long" and "hex". How are these suffixes
handled by setup builder?
Thanks.
Markus
NewsArchive
05-07-2011, 06:27 AM
Hi Markus,
> in the constants include script, there are numbers with a H or a L at the
> end. I guess, this is for "long" and "hex". How are these suffixes handled
> by setup builder?
The 'L' is a thing from the past (early SB5 alpha in Y2002) and only there
for backward compatibility.
Both 'L' and 'H' define a hexadecimal value in a SB constant.
Friedrich
NewsArchive
05-07-2011, 06:27 AM
Thank you for the explanation.
Is this documented?
I have attached a demo script, that could be useful to understand this
hex constants.
Markus
NewsArchive
05-07-2011, 06:28 AM
Hi Markus,
> Thank you for the explanation.
>
> Is this documented?
>
> I have attached a demo script, that could be useful to understand this
> hex constants.
No, this is not documented because we only use it in the "Common
Definitions.sbi" include script. In fact, it's not "officially" supported.
We added the HEX constants to make our own life easier <g> (because all bit
mask values on MSDN are HEX values).
Friedrich
NewsArchive
05-07-2011, 06:28 AM
But there is a (possible related) undocumented option in the
"preprocessor set constant" function, which is visible to everybody, who
uses this function. See attached screen shot.
Markus
NewsArchive
05-07-2011, 06:28 AM
Markus,
> But there is a (possible related) undocumented option in the
> "preprocessor set constant" function, which is visible to everybody, who
> uses this function. See attached screen shot.
Yes, you are right. We added this option last year. We'll add a note to
the documentation.
Friedrich
NewsArchive
05-18-2011, 12:54 AM
Still open in 3325
Markus Zander
NewsArchive
05-18-2011, 12:54 AM
Hi Markus,
>
> Still open in 3325
>
The Development Build does not provide updated documentation.
Friedrich
NewsArchive
07-10-2011, 01:53 AM
OK in build 3378. Thank you.
Markus Zander
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.