Function Macro
NumCosmoMathUTIL_DEFINE_CALLBACK
Declaration [src]
#define NCM_UTIL_DEFINE_CALLBACK (
CallBack,
CALL_BACK,
callback,
ret,
args_decl,
args
)
Description [src]
This macro defines the functions to handle the callback structure. You must use NCM_UTIL_CALLBACK_ARGS to declare both the arguments declaration of the callback function and the arguments of the function. They 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.
args-
Type:
-The arguments of the callback function.