@Hypex
Quote:
That sounds like poorly written and untested code.
I assume there different versions of exec library, unless its due different CPU types. It be nice, if kept exec version the same on all hardware, but I guess older hardware, does have latest library, the ExMem functions is probably not present in interface, on the older versions.
So probably not due to poorly written code, but more likely due lack of checking of availability poor documentation and examples. As almost always.
In any case, an API that does not assume possibility of failure, be horrible, if that was the case.
Should be as easy as a IF, of course we need know version it’s not available
if ((ExecBase -> lib_Version >= a)&&(ExecBase -> lib_Revision >= b))
{
}