| 166 | } |
| 167 | |
| 168 | void 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 | |
| 186 | GDScriptFunction *GDScriptByteCodeGenerator::write_end() { |
| 187 | #ifdef DEBUG_ENABLED |
no test coverage detected