aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/include
diff options
context:
space:
mode:
authorRémi Verschelde2017-11-03 21:02:58 +0100
committerGitHub2017-11-03 21:02:58 +0100
commitacd193b62e3972d6dd1e4b2aa115948658f85e9b (patch)
tree713543bc0621847bd6dfeca524221f15592f4c89 /modules/gdnative/include
parent8e145fa1a80bcd860dd8e16d7db684f9905865e8 (diff)
parent8b11e17f7084511f8c528b79e486bc2d3a02c224 (diff)
downloadgodot-acd193b62e3972d6dd1e4b2aa115948658f85e9b.tar.gz
godot-acd193b62e3972d6dd1e4b2aa115948658f85e9b.tar.zst
godot-acd193b62e3972d6dd1e4b2aa115948658f85e9b.zip
Merge pull request #12610 from karroffel/gdnative-api-fixes
[GDNative] small API bug fixes
Diffstat (limited to 'modules/gdnative/include')
-rw-r--r--modules/gdnative/include/gdnative/basis.h2
-rw-r--r--modules/gdnative/include/gdnative/string.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdnative/include/gdnative/basis.h b/modules/gdnative/include/gdnative/basis.h
index b86b1c17d..49ca765a0 100644
--- a/modules/gdnative/include/gdnative/basis.h
+++ b/modules/gdnative/include/gdnative/basis.h
@@ -97,7 +97,7 @@ void GDAPI godot_basis_new(godot_basis *r_dest);
void GDAPI godot_basis_new_with_euler_quat(godot_basis *r_dest, const godot_quat *p_euler);
// p_elements is a pointer to an array of 3 (!!) vector3
-void GDAPI godot_basis_get_elements(godot_basis *p_self, godot_vector3 *p_elements);
+void GDAPI godot_basis_get_elements(const godot_basis *p_self, godot_vector3 *p_elements);
godot_vector3 GDAPI godot_basis_get_axis(const godot_basis *p_self, const godot_int p_axis);
diff --git a/modules/gdnative/include/gdnative/string.h b/modules/gdnative/include/gdnative/string.h
index f30fdb8dc..29510313c 100644
--- a/modules/gdnative/include/gdnative/string.h
+++ b/modules/gdnative/include/gdnative/string.h
@@ -66,6 +66,7 @@ void GDAPI godot_string_new_unicode_data(godot_string *r_dest, const wchar_t *p_
void GDAPI godot_string_get_data(const godot_string *p_self, char *p_dest, int *p_size);
wchar_t GDAPI *godot_string_operator_index(godot_string *p_self, const godot_int p_idx);
+wchar_t GDAPI godot_string_operator_index_const(const godot_string *p_self, const godot_int p_idx);
const char GDAPI *godot_string_c_str(const godot_string *p_self);
const wchar_t GDAPI *godot_string_unicode_str(const godot_string *p_self);