Add variant_internal.hpp.

This module contains VariantInternalType, VariantInternal, VariantGetInternalPtr, VariantInternalAccessor and VariantDefaultInitializer, allowing to access and manipulate Variant's internal values.
This commit is contained in:
Lukas Tenbrink
2024-11-26 23:35:31 +01:00
parent 5255034fb0
commit daef7d48ea
9 changed files with 575 additions and 0 deletions

View File

@@ -271,6 +271,9 @@ func _ready():
# Test that we can access an engine singleton.
assert_equal(example.test_use_engine_singleton(), OS.get_name())
assert_equal(example.test_get_internal(1), 1)
assert_equal(example.test_get_internal(true), -1)
# Test that notifications happen on both parent and child classes.
var example_child = $ExampleChild
assert_equal(example_child.get_value1(), 11)