| 215 | } |
| 216 | |
| 217 | static s32 parse_index_array(Array<u32> &output, const char *json) |
| 218 | { |
| 219 | TempAllocator4096 ta; |
| 220 | JsonArray indices(ta); |
| 221 | RETURN_IF_ERROR(sjson::parse_array(indices, json)); |
| 222 | |
| 223 | array::resize(output, array::size(indices)); |
| 224 | for (u32 i = 0; i < array::size(indices); ++i) { |
| 225 | output[i] = RETURN_IF_ERROR(sjson::parse_int(indices[i])); |
| 226 | } |
| 227 | |
| 228 | return 0; |
| 229 | } |
| 230 | |
| 231 | s32 parse_nodes(Mesh &m, const char *sjson, CompileOptions &opts); |
| 232 |
no test coverage detected