RE: [AD] fixed routines

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


Title: RE: [AD] fixed routines

> > Could a compiler warning be generated when people use
> allegro's fcos,
> > fsin etc functions in the old form? Something like
> > 'The use of fcos is deprecated, please use fixcos instead'.
>
> Does anyone know how to do that with GGC ?

ELF has the ability to do that, but it's at the linker level,
so it would work only with non inlined versions, and most of
the fixed stuff is inlined :/
A more brute force solution would be to move all these into
include/allegro/deprecated.h/inl, and document that backward
compatibility can be achieved by including this file. It is
rather intrusive however.

--
Vincent Penquerc'h



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