godot/modules/gdscript
Hein-Pieter van Braam 4cf49bb6f4 Allow preload to accept a const string.
In preload() parsing this code will lookup the identifier in the local
constant database. If the identifier corresponds to a string constant
it is used as the path for preload().

Currently this does not work for global constants, only constants
declared in the same class as the preload is happening. We can implement
a full fix too. Maybe we can use this PR to discuss the possibilities.

This (partially) fixes #6798

(cherry picked from commit 3e5743ca36)
2017-03-18 20:10:36 +01:00
..
config.py style: Fix PEP8 blank lines issues in Python files 2016-11-02 22:29:36 +01:00
gd_compiler.cpp Skip asserts on non-debug builds at compiler level 2017-03-13 00:23:42 +01:00
gd_compiler.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_editor.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_function.cpp Remove bounds check when resuming from yield. 2017-03-18 20:09:45 +01:00
gd_function.h Warn instad of crashing when class instance is gone after yield. Closes #5247 , probably closes other yield related crashes 2016-06-29 21:06:16 -03:00
gd_functions.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_functions.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_parser.cpp Allow preload to accept a const string. 2017-03-18 20:10:36 +01:00
gd_parser.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_script.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_script.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_tokenizer.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_tokenizer.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
register_types.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
register_types.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
SCsub SCsub: Add python shebang as a hint for syntax highlighting 2016-10-30 14:51:34 +01:00