MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / write_start

Method write_start

modules/gdscript/gdscript_byte_codegen.cpp:168–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void GDScriptByteCodeGenerator::write_start(GDScript *p_script, const StringName &p_function_name, bool p_static, Variant p_rpc_config, const GDScriptDataType &p_return_type) {
169 function = memnew(GDScriptFunction);
170
171 function->name = p_function_name;
172 function->_script = p_script;
173 function->source = p_script->get_script_path();
174
175#ifdef DEBUG_ENABLED
176 function->func_cname = (String(function->source) + " - " + String(p_function_name)).utf8();
177 function->_func_cname = function->func_cname.get_data();
178#endif
179
180 function->_static = p_static;
181 function->return_type = p_return_type;
182 function->rpc_config = p_rpc_config;
183 function->_argument_count = 0;
184}
185
186GDScriptFunction *GDScriptByteCodeGenerator::write_end() {
187#ifdef DEBUG_ENABLED

Callers 2

_parse_functionMethod · 0.80

Calls 4

get_script_pathMethod · 0.80
StringClass · 0.50
utf8Method · 0.45
get_dataMethod · 0.45

Tested by

no test coverage detected