summaryrefslogtreecommitdiffstats
path: root/core/callable_method_pointer.h
Commit message (Collapse)AuthorAgeFilesLines
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-244/+0
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Refactor MethodBind to use variadic templatesreduz2020-10-181-287/+1
| | | | Removed make_binders and the old style generated binders.
* Refactored binding system for core typesreduz2020-10-141-18/+231
| | | | | | | | | Moved to a system using variadic templates, shared with CallableBind. New code is cleaner, faster and allows for much better optimization of core type functions from GDScript and GDNative. Added Variant::InternalMethod function for direct call access.
* Core Callable: fixed variant call casterSergey Minakov2020-07-251-2/+2
| | | | Use same call to VariantCaster in release build as used in VariantCasterAndValidate::call method
* Fix Container sorting not working when overriding _sort_children in gdscriptPouleyKetchoupp2020-05-161-2/+34
| | | | | | | | | | | | | | | Remove _sort_children from script bindings: _sort_children is an internal method which shouldn't be exposed to scripts. Added support for non-bound methods in MessageQueue: So we can use deferred calls without exposing internal methods to scripts. Added debug checks in CallableCustomMethodPointer: Adding method pointer callables to the message queue was causing crashes in case an object was destroyed and the same memory was allocated for another one. The new object had a valid object id but the call was erroneous. Release will be fixed later, along with Variant which has the same problem and is also fixed for debug only.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-8/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Implement decalsJuan Linietsky2020-04-141-0/+1
| | | | | | Also implemented decal atlas, so projectors and other stuff can be added. Sidenote: Had to make RID hashable, so some unrelated includes changed in order to include it in hashfuncs.h
* callable_mp: Fix non-debug branchRémi Verschelde2020-02-231-2/+15
| | | | | | | | Was missed in #36393 because no `callable_mp()` calls were actually compiled with `tools=no` in that PR. Also work around GCC warning that also affects the `call_with_variant_args_ret_helper` variant.
* Created the callable_mp macro, for signals to call method pointers directly.Juan Linietsky2020-02-211-0/+279