MCPcopy Create free account
hub / github.com/crownengine/crown / compile

Function compile

src/resource/unit_resource.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace 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

Callers

nothing calls this directly

Calls 4

parse_unitFunction · 0.85
blobFunction · 0.85
source_pathMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected