summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_functions.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add new "push_*()" functions to GDScriptMichael Alexsander Silva Dias2018-10-311-4/+47
|/
* Fixed argument names being swapped for atan2DualMatrix2018-09-161-1/+1
| | | | The arguments of atan2() should be y,x instead of x,y This was just wrong since the internal atan2 already had y,x as parameters, so if you followed the autocomplete the result would just be wrong.
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-8/+8
| | | | | | 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.
* Fixed return type for get_stack() function callWiggleWizard2018-09-051-1/+1
|
* Make some debug prints verbose-only, remove othersRémi Verschelde2018-08-241-6/+0
|
* GDScript: Enable built-in function introspection in non-toolsGeorge Marques2018-07-251-1/+1
| | | | Only for debug builds. Fix problems in non-tools targets.
* Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add static type checks in the parserGeorge Marques2018-07-201-11/+12
| | | | | | | | | | | | - 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.
* Merge pull request #18966 from chanon/new-debug-printMax Hilbrunner2018-07-041-0/+26
|\ | | | | Add new debug print method that shows line number where the print came from
| * add new print_debug method which shows source and line numberchanon2018-05-281-0/+26
| |
* | add new get_stack function to get GDScript stack trace as arraychanon2018-05-171-0/+22
|/
* Merge pull request #16106 from poke1024/gdscript-lerpJuan Linietsky2018-05-071-4/+18
|\ | | | | GDScript: generalize lerp
| * GDScript: generalize lerpBernhard Liebl2018-01-271-4/+18
| |
* | Add is_instance_valid() method to GDScript, ending more than a decade of pain.Juan Linietsky2018-05-071-1/+17
| |
* | Merge pull request #16173 from vnen/gdscript-argumentsRémi Verschelde2018-02-191-0/+10
|\ \ | | | | | | Add argument count check for some GDScript functions
| * | Add argument count check for some GDScript functionsGeorge Marques2018-01-301-0/+10
| |/ | | | | | | | | - Print functions have no check. - Also remove extra apostrophe from the error report.
* / Show default values in docs for GDScript built-in functionsGeorge Marques2018-01-301-0/+2
|/
* Fixes for parameter names of builtin functions in visual scripts/coreChaosus2018-01-161-3/+3
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | 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.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Add cartesian to polar conversion functionspablotato2017-11-201-0/+30
|
* Add print_error function, akin to print_lineGeorge Marques2017-11-161-1/+1
|
* GDScript: Refactor "GD" class prefix to "GDScript"Rémi Verschelde2017-11-161-0/+1767