xptr_eval function

Call a C++ function using an external pointer