Using Subfunctions

In most hooks, you cannot declare functions. The reason for this is that the hook content is used as the function body in the generated libraries. You can only declare functions in the ‘include hook’ which is linked to the BII. In that case the functions are available for any of the BII’s hooks. In the include hook you can also include defines which you want to reuse in multiple hooks.

Instead of using the include hook for subfunctions, you can also use library functions in any hook. For example:

#pragma used dll oppmmm1234
...
number2 = ppmmm1234.calculate.number(number1)
...