Do codegen with c_str function for enum