Function Macro

NumCosmoMathUTIL_DECLARE_CALLBACK

Declaration [src]

#define NCM_UTIL_DECLARE_CALLBACK (
  CallBack,
  CALL_BACK,
  callback,
  ret,
  args_decl
)

Description [src]

This macro declares a callback structure and the functions to handle it. You must use NCM_UTIL_CALLBACK_ARGS to declare the arguments of the callback function. The argument arg_decl can be empty.

This function is not directly available to language bindings.

Parameters

CallBack

Type: -

The name of the callback structure in camel case.

CALL_BACK

Type: -

The name of the callback function in uppercase.

callback

Type: -

The name of the callback function in lowercase.

ret

Type: -

The return type of the callback function.

args_decl

Type: -

The declaration of the arguments of the callback function.