|
cmEngine
0.1.1
A library for interpreting CMake code.
|
#include <cmFunction.h>
Data Fields | |
| void * | data |
| void(* | call )(void *data, struct cmFunctionContext *function_context) |
| void *(* | copy )(struct cmHost *host, const void *data) |
| void(* | release )(struct cmHost *host, void *data) |
This structure is used to contain a function callable from the cmake interpreter.
| void(* cmFunction::call) (void *data, struct cmFunctionContext *function_context) |
Calls the function. Issuing an error message will be interpreted as a failed function call. Issue error messages instead of relying on error codes.
Makes a copy of the function data. A null-pointer returned by this function indicates a memory allocation failure.
| void* cmFunction::data |
Custom data to be passed to the function.
Releases memory allocated by the function. This happens when the function goes out of scope.
1.8.12