WFDCFG_FNPTR()

Updated: April 19, 2023

Validate the type of a function pointer at compile time

Synopsis:

#include <wfdqnx/wfdcfg.h>
void* WFDCFG_FNPTR(void *FN,
                   void *TYP)

Arguments:

FN
A function pointer that you're validating
TYP
A function type that you're validating your function pointer against

Library:

libwfdcfg

Description:

This macro is used to validate that whether the specified function pointer (FN) is the same type as the specified function type (TYP).

Returns:

The function pointer FN, if it is compatible with the function type specified; 0 otherwise.