Re: EuAllegro Help
- Posted by petelomax 3 months ago
- 360 views
ghaberek said...
There are functions in std/math.e that will make those bit shifts easier. See or_all() and shift_bits().
public constant ALLEGRO_VERSION_INT = or_all({ shift_bits( ALLEGRO_VERSION, -24 ), shift_bits( ALLEGRO_SUB_VERSION, -16 ), shift_bits( ALLEGRO_WIP_VERSION, -8 ), ALLEGRO_UNSTABLE_BIT })
fwiw, I would always prefer eg
public constant ALLEGRO_VERSION_INT = ALLEGRO_VERSION*#1000000 + ALLEGRO_SUB_VERSION*#10000 + ALLEGRO_WIP_VERSION*#100 + ALLEGRO_UNSTABLE_BIT and public constant ALLEGRO_UNSTABLE_BIT = #200000000
ghaberek said...
(I also recently discovered Dependencies which is a newer re-implementation of Dependency Walker for Windows 7 and up, but I haven't tried it yet. Might be worth a look.)
It sure is, works like a charm. Thanks for the tip.