Re: [AD] [WIN] dll export file patch

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


Henrik Stokseth <hstokset@xxxxxxxxxx> wrote:

> #define AL_FUNC(type, name, args) \
> type (*name)(args) = (void*) LoadProcAddress(allegro_dll_handle,
\"name\");
> \
> if(!name) Exit(-99);

hmm... to avoid big overhead we should #ifdef DEBUGMODE out all NULL pointer
checks.

-henrik




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