summaryrefslogtreecommitdiff
path: root/modules/mono/mono_gd/gd_mono_header.h
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-10-17 21:37:57 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-10-17 22:36:26 +0200
commit23ae64b15e14e868f3a152ca2745b2db764b12c2 (patch)
treef3d68e5022b7ee59993d9106a17c91e6f15cb301 /modules/mono/mono_gd/gd_mono_header.h
parenteeaa9124af0cf6b66acd70f003482eecdd997a4a (diff)
C#: Optimize struct marshalling
- We no longer box struct to return them from internal calls. - Use reinterpret_cast if the managed struct layout is the same as the native struct.
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_header.h')
-rw-r--r--modules/mono/mono_gd/gd_mono_header.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/mono/mono_gd/gd_mono_header.h b/modules/mono/mono_gd/gd_mono_header.h
index 4f2efc7b92..51d0c9b356 100644
--- a/modules/mono/mono_gd/gd_mono_header.h
+++ b/modules/mono/mono_gd/gd_mono_header.h
@@ -55,14 +55,4 @@ struct ManagedType {
}
};
-typedef union {
- uint32_t _uint32;
- float _float;
-} mono_float;
-
-typedef union {
- uint64_t _uint64;
- float _double;
-} mono_double;
-
#endif // GD_MONO_HEADER_H