summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-11 21:51:35 +0200
committerGitHub <noreply@github.com>2021-05-11 21:51:35 +0200
commit0f334e60f2d4fd7c9ab7dd0feae12e6e682755da (patch)
treeebdf22c631621287d5cfe9fc0c86de12bc09cf9f /modules
parent048abb50aa8792958977cf398acadd5e9a1974db (diff)
parented11756d26c75864b40b2645d4f35ead20330876 (diff)
Merge pull request #48646 from akien-mga/gdnative-signal-callable-32bit
GDNative: Fix size mismatch on 32-bit platforms for Signal and Callable
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/include/gdnative/callable.h1
-rw-r--r--modules/gdnative/include/gdnative/signal.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/include/gdnative/callable.h b/modules/gdnative/include/gdnative/callable.h
index b84b0c1f1f..1d52ca7a68 100644
--- a/modules/gdnative/include/gdnative/callable.h
+++ b/modules/gdnative/include/gdnative/callable.h
@@ -37,6 +37,7 @@ extern "C" {
#include <stdint.h>
+// Alignment hardcoded in `core/variant/callable.h`.
#define GODOT_CALLABLE_SIZE (16)
#ifndef GODOT_CORE_API_GODOT_CALLABLE_TYPE_DEFINED
diff --git a/modules/gdnative/include/gdnative/signal.h b/modules/gdnative/include/gdnative/signal.h
index f4dc17e089..41a76d0510 100644
--- a/modules/gdnative/include/gdnative/signal.h
+++ b/modules/gdnative/include/gdnative/signal.h
@@ -37,6 +37,7 @@ extern "C" {
#include <stdint.h>
+// Alignment hardcoded in `core/variant/callable.h`.
#define GODOT_SIGNAL_SIZE (16)
#ifndef GODOT_CORE_API_GODOT_SIGNAL_TYPE_DEFINED