Using external C++ function in the model block

Well, you just call it in the model block like any other function. There was an example of that at