util_compile_value


Description:

[ Version ( since = "3.46" ) ]
public static unowned string util_compile_value (string compile_value, out unowned string out_glob_buff, size_t out_glob_buff_size)

Processes the compile_value and returns the result, which is stored into the out_glob_buff.

The out_glob_buff should be large enough to hold the processed value and it should be a global memory buffer (usually statically allocated) initialized to 0, which is used to short-circuit the call, because the processing is done only if the first element of the out_glob_buff is 0, in all other cases the function immediately returns the out_glob_buff.

Parameters:

compile_value

a value provided in the compile time

out_glob_buff

a global buffer to store the processed value to

out_glob_buff_size

size of the out_glob_buff

Returns:

processed compile_value, saved into *out_glob_buff