BloombergLP::bslmt::TestUtil::makeFunctionCallNonInline

Return the specified functionPtr (expected to be a static function pointer) without modification.

Synopsis

Declared in <bslmt_testutil.h>

template<class FUNCTION_PTR>
static
FUNCTION_PTR
makeFunctionCallNonInline(FUNCTION_PTR functionPtr);

Description

The value of functionPtr is transformed through identityPtr so that if the caller is in a different module, the compiler will have no way of knowing that this is an identity function and thus no way of inlining the call.

Return Value

functionPtr unchanged

Parameters

NameDescription
functionPtrstatic function pointer to return without modification