MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / jit_string_builder_temp

Function jit_string_builder_temp

src/builtin/module_jit.cpp:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 }
188
189 DAS_API char * jit_string_builder_temp ( Context & context, int32_t nArgs, TypeInfo ** types, LineInfoArg * at, vec4f * args ) {
190 StringBuilderWriter writer;
191 DebugDataWalker<StringBuilderWriter> walker(writer, PrintFlags::string_builder);
192 for ( int i = 0; i < nArgs; ++i )
193 walker.walk(args[i], types[i]);
194 auto length = writer.tellp();
195 if ( length ) {
196 auto str = context.allocateTempString(writer.c_str(), uint32_t(length), at);
197 context.freeTempString(str, at);
198 return str;
199 } else {
200 return nullptr;
201 }
202 }
203
204 DAS_API void jit_simnode_interop(void *ptr, int argCount, TypeInfo **types) {
205 auto res = new(ptr) SimNode_AotInteropBase();

Callers

nothing calls this directly

Calls 3

tellpMethod · 0.80
walkMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected