Re: EuAllegro Help
- Posted by Icy_Viking Aug 14, 2019
- 1355 views
ghaberek said...
Icy_Viking said...
Thanks for the tips. I've reformated to the new way. I've left out the UNSTABLE_BIT flag as it seems it was uneeded. However, I am now getting type_check failure ver is {83886080,131072,1280}, this is coming from the sample program al_install_system() function.
You left out the or_all() function.
public constant ALLEGRO_VERSION_INT = or_all({ -- or_all() goes here shift_bits(ALLEGRO_VERSION,-24), shift_bits(ALLEGRO_SUB_VERSION,-16), shift_bits(ALLEGRO_WIP_VERSION,-8), ALLEGRO_RELEASE_NUMBER })
-Greg
Thanks Greg, simple oversight. Ok, so I did an error check and it says the function is failing to register. I checked the DLL and the al_install_system() function is inside the DLL.
public constant xal_install_system = define_c_func(al,"+al_install_system",{C_INT,C_POINTER},C_BOOL) public function al_install_system(atom ver,atom x) return c_func(xal_install_system,{ver,x}) end function if xal_install_system = -1 then puts(1,"al_install_system failed!\n") --this does come up when I run the wrapper library abort(0) end if