1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00
Files
godot/core/variant/variant_op.cpp
aaronp64 5f7566a72e Reuse/optimize common OperatorEvaluator*::evaluate logic
Added CommonEvaluate class to be used by OperatorEvaluator* classes that have the same logic for `evaluate` and `validated_evaluate`. CommonEvaluate initializes the return Variant to the correct type, then passes through to validated_evaluate, reducing code duplication between evaluate/validated_evaluate and avoiding the overhead of creating/destroying temporary Variants from previous evaluate implementations.
2025-11-28 11:06:19 -05:00

93 KiB