summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_functions.cpp
AgeCommit message (Collapse)Author
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-09-05Fixed return type for get_stack() function callWiggleWizard
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-07-25GDScript: Enable built-in function introspection in non-toolsGeorge Marques
Only for debug builds. Fix problems in non-tools targets.
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-20Add static type checks in the parserGeorge Marques
- Resolve types for all identifiers. - Error when identifier is not found. - Match return type and error when not returning a value when it should. - Check unreachable code (code after sure return). - Match argument count and types for function calls. - Determine if return type of function call matches the assignment. - Do static type check with match statement when possible. - Use type hints to determine export type. - Check compatibility between type hint and explicit export type.
2018-07-04Merge pull request #18966 from chanon/new-debug-printMax Hilbrunner
Add new debug print method that shows line number where the print came from
2018-05-28add new print_debug method which shows source and line numberchanon
2018-05-17add new get_stack function to get GDScript stack trace as arraychanon
2018-05-07Merge pull request #16106 from poke1024/gdscript-lerpJuan Linietsky
GDScript: generalize lerp
2018-05-07Add is_instance_valid() method to GDScript, ending more than a decade of pain.Juan Linietsky
2018-02-19Merge pull request #16173 from vnen/gdscript-argumentsRémi Verschelde
Add argument count check for some GDScript functions
2018-01-30Show default values in docs for GDScript built-in functionsGeorge Marques
2018-01-30Add argument count check for some GDScript functionsGeorge Marques
- Print functions have no check. - Also remove extra apostrophe from the error report.
2018-01-27GDScript: generalize lerpBernhard Liebl
2018-01-16Fixes for parameter names of builtin functions in visual scripts/coreChaosus
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-11-20Add cartesian to polar conversion functionspablotato
2017-11-16Add print_error function, akin to print_lineGeorge Marques
2017-11-16GDScript: Refactor "GD" class prefix to "GDScript"Rémi Verschelde