| 20 | namespace unit_resource_internal |
| 21 | { |
| 22 | s32 compile(CompileOptions &opts) |
| 23 | { |
| 24 | UnitCompiler uc(default_allocator()); |
| 25 | s32 err = unit_compiler::parse_unit(uc, opts.source_path(), opts); |
| 26 | ENSURE_OR_RETURN(UNIT_RESOURCE, err == 0, opts); |
| 27 | Buffer blob(default_allocator()); |
| 28 | err = unit_compiler::blob(blob, uc); |
| 29 | ENSURE_OR_RETURN(UNIT_RESOURCE, err == 0, opts); |
| 30 | opts.write(blob); |
| 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | } // namespace unit_resource_internal |
| 35 | #endif |
nothing calls this directly
no test coverage detected