Re: Allegro 5 Wrapper Error
- Posted by Lone_EverGreen_Ranger Jul 09, 2013
- 1913 views
jimcbrown said...
Lone_EverGreen_Ranger said...
public constant ALLEGRO_RELEASE_NUMBER = 1 public constant ALLEGRO_VERSION = 5, ALLEGRO_SUB_VERSION = 0, ALLEGRO_WIP_VERSION = 9 public constant ALLEGRO_VERSION_INT = ALLEGRO_VERSION and ALLEGRO_SUB_VERSION and ALLEGRO_WIP_VERSION and ALLEGRO_RELEASE_NUMBER
I can provide more flags if neccessary.
It looks like your definition of ALLEGRO_VERSION_INT is incorrect, going by http://upstream-tracker.org/diffs/allegro/5.0.4_to_5.0.5/diff.html
This is the accurate translation from C
constant ALLEGRO_VERSION_INT = or_bits(ALLEGRO_VERSION * power(2, 24), or_bits(ALLEGRO_SUB_VERSION * power(2, 16), or_bits(ALLEGRO_WIP_VERSION * power(2, 8), ALLEGRO_RELEASE_NUMBER)))
Thanks, Jim. It ran without the error.