MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / new_cpp

Method new_cpp

crates/codegen/src/unrealcpp.rs:5245–5253  ·  view source on GitHub ↗
(extra_includes: &[&str])

Source from the content-addressed store, hash-verified

5243 }
5244
5245 fn new_cpp(extra_includes: &[&str]) -> Self {
5246 let mut output = CodeIndenter::new(String::new(), " ");
5247 print_auto_generated_file_comment(&mut output);
5248 for include in extra_includes {
5249 writeln!(output, "#include \"{include}\"");
5250 }
5251 writeln!(output);
5252 Self { output }
5253 }
5254
5255 fn into_inner(self) -> String {
5256 self.output.into_inner()

Callers

nothing calls this directly

Calls 2

newFunction · 0.50

Tested by

no test coverage detected