Re: [AD] version check in allegro_init

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> If you can think of a way to define a function in a header file only
> _once_, you could put an inline function in the headers that returns the
> version number. You can then call that function from allegro_init and
> compare with the compiled in version numbers. I'm not sure if it's
> technically possible to do this without getting multiple definitions
> of the function, though.

Allegro's time-trusted static inline functions. We'd still need a function
to get the allegro version from the library, or, alternatively,
_al_libver_* internal variables which are initialized to ALLEGRO_VERSION
etc. when the library is compiled.

Evert




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/