#[no_mangle]
pub extern "C" fn roup_parse(
input: *const c_char,
) -> *mut OmpDirective
Expand description
Parse an OpenMP directive from a C string.
§Parameters
input
: Null-terminated C string containing the directive
§Returns
- Pointer to
OmpDirective
on success - NULL on parse failure or NULL input
§Safety
Caller must:
- Pass valid null-terminated C string or NULL
- Call
roup_directive_free()
on the returned pointer
§Example
OmpDirective* dir = roup_parse("#pragma omp parallel");
if (dir) {
// use directive
roup_directive_free(dir);
}