generate_c_header_from_defs

Function generate_c_header_from_defs 

Source
pub fn generate_c_header_from_defs(params: &[ParamDef]) -> String
Expand description

Generate C header with parameter index constants from a const array of ParamDefs.

Output example:

#define PARAM_GAIN 0
#define PARAM_PAN 1
#define PARAM_COUNT 2
static const char* PARAM_IDS[PARAM_COUNT] = { "GAIN", "PAN" };