Hi
I have been searching the wiki for a way to find out if an extension is loaded or not but I can't seem to find anything. Any help is welcome and I would appriciate alot.
Kindly
Val
Extensions ?
Moderators: Lavish Software Team, Moderators
The "Extension" command, which you use to load extensions in the first place, supports listing the loaded extensions.
Code: Select all
ext -list
Code: Select all
if !${Extension[isxeq2](exists)}
{
echo "ISXEQ2 is not loaded"
}
you can also do it in preprocessor (this helps if you have global objects that would get initialized before main runs, but require the extension)
Code: Select all
#if !${Extension[isxeq2](exists)}
#error "ISXEQ2 is not loaded"
#endif
Code: Select all
#if !${InnerSpace:LoadExtension[isxeq2](exists)}
#error "ISXEQ2 is not and could not be loaded"
#endif