diff options
| author | Juan Linietsky | 2014-05-24 01:35:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-05-24 01:35:47 -0300 |
| commit | 1cad087969efefa401a11051343cd0689f660770 (patch) | |
| tree | 1595dd049bdb7289752012dca4398b2251fb08fa /modules/gdscript/gd_compiler.cpp | |
| parent | f9ff086235cd4ff406b136f62fff77b85c0873f9 (diff) | |
| download | godot-1cad087969efefa401a11051343cd0689f660770.tar.gz godot-1cad087969efefa401a11051343cd0689f660770.tar.zst godot-1cad087969efefa401a11051343cd0689f660770.zip | |
Diffstat (limited to 'modules/gdscript/gd_compiler.cpp')
| -rw-r--r-- | modules/gdscript/gd_compiler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp index 48f009282..548b10cf1 100644 --- a/modules/gdscript/gd_compiler.cpp +++ b/modules/gdscript/gd_compiler.cpp @@ -1263,6 +1263,16 @@ Error GDCompiler::_parse_function(GDScript *p_script,const GDParser::ClassNode * gdfunc->name=func_name; gdfunc->_script=p_script; gdfunc->source=source; + +#ifdef DEBUG_ENABLED + + { + gdfunc->func_cname=(String(source)+" - "+String(func_name)).utf8(); + gdfunc->_func_cname=gdfunc->func_cname.get_data(); + + } + +#endif if (p_func) { gdfunc->_initial_line=p_func->line; } else { |
