Archive: Check if function is defined at compile time?


Check if function is defined at compile time?
Hey all,

I was wondering if there is a way to detect if a certain function is available in the script being compiled. Something similar to !ifmacrodef, I'm trying to avoid having a !define in each function and checking it that way.


thanks :D


I can't imagine how you are using this that you don't know if a function exists. If you are looking for the function at runtime, try using GetFunctionAddress. If you need it during the script compilation, I think adding !define in the function is the only way you will be able to tell. There doesn't seem to be any way to query the function address table.

Don