diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-01-06 20:54:57 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-01-06 21:12:52 +0100 |
commit | f037a697eb2ce45d63840dfe87c48212d7cbf09e (patch) | |
tree | 77c42ef7fe00e736ceb9204d1b2fc5a847fa7c0c | |
parent | dd62b9685fbc9b733a25e26a788b5d7f3212a804 (diff) | |
download | redot-cpp-f037a697eb2ce45d63840dfe87c48212d7cbf09e.tar.gz |
Add missing `OP_POWER` operator to `Variant`
-rw-r--r-- | binding_generator.py | 1 | ||||
-rw-r--r-- | include/godot_cpp/variant/variant.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/binding_generator.py b/binding_generator.py index 478dafe..a1cd215 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -2433,6 +2433,7 @@ def get_operator_id_name(op): "unary-": "negate", "unary+": "positive", "%": "module", + "**": "power", "<<": "shift_left", ">>": "shift_right", "&": "bit_and", diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp index 4b58642..3c64791 100644 --- a/include/godot_cpp/variant/variant.hpp +++ b/include/godot_cpp/variant/variant.hpp @@ -122,6 +122,7 @@ public: OP_NEGATE, OP_POSITIVE, OP_MODULE, + OP_POWER, // bitwise OP_SHIFT_LEFT, OP_SHIFT_RIGHT, |