I want to add some Apex specific code to existing packages.
But, if Apex is not installed these packages would not compile.
To solve this problem, I want to add conditional compilation directives.
Are there any existing flags, similar to PLSQL_CCFLAGS or DBMS_DB_VERSION.VER_...
to indicate if Apex is actually installed on the database?
Don't want to create my own flags if they already exist.
Any other options are welcome as well.
Thank you for your answer.
I don't have a problem detecting if Apex is installed.
The problem is that conditional compilation requires static defines.
It cannot be anything dynamic like select or a function call.
So I was looking for something similar to sys package
DBMS_DB_VERSION and defines like ver_le_9_1.