summaryrefslogtreecommitdiff
path: root/modules/gdnative/godot/godot_dictionary.cpp
diff options
context:
space:
mode:
authorsheepandshepherd <sheepandshepherd@hotmail.com>2017-05-31 00:03:50 +0200
committersheepandshepherd <sheepandshepherd@hotmail.com>2017-05-31 00:03:50 +0200
commit9f34bb4ebe1e7d5b08b27acc7af216d3b27cd37e (patch)
treef6415a9aedb663f99bff32ad4643b22a538dd720 /modules/gdnative/godot/godot_dictionary.cpp
parent5567e898d1052c1e2c2d32d3c37dfd957f4dc4bd (diff)
Wrap copy constructor for some GDNative types
Diffstat (limited to 'modules/gdnative/godot/godot_dictionary.cpp')
-rw-r--r--modules/gdnative/godot/godot_dictionary.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdnative/godot/godot_dictionary.cpp b/modules/gdnative/godot/godot_dictionary.cpp
index b98ee5b5c9..deec5f8ffb 100644
--- a/modules/gdnative/godot/godot_dictionary.cpp
+++ b/modules/gdnative/godot/godot_dictionary.cpp
@@ -44,6 +44,12 @@ void GDAPI godot_dictionary_new(godot_dictionary *r_dest) {
memnew_placement(dest, Dictionary);
}
+void GDAPI godot_dictionary_new_copy(godot_dictionary *r_dest, const godot_dictionary *r_src) {
+ Dictionary *dest = (Dictionary *)r_dest;
+ const Dictionary *src = (const Dictionary *)r_src;
+ memnew_placement(dest, Dictionary(*src));
+}
+
void GDAPI godot_dictionary_destroy(godot_dictionary *p_self) {
Dictionary *self = (Dictionary *)p_self;
self->~Dictionary();