wrap_function: Wrap a single function
Description
This is only called during .onLoad when the namespace is still open.
The wrapper checks is_patching_enabled() at runtime to decide whether
to record calls or pass through.
Usage
wrap_function(function_name)
Value
TRUE if successful, FALSE otherwise
Arguments
- function_name
Name of the function to wrap