Skip to content

Commit 731840e

Browse files
committed
Use local ffi_metatype instead of ffi.metatype
1 parent 6c88893 commit 731840e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/godot_basis.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ methods.FLIP_Z = ffi_new('godot_basis', { elements = { 1, 0, 0, 0, 1, 0, 0, 0, -
170170

171171
--- Metamethods
172172
-- @section metamethods
173-
Basis = ffi.metatype('godot_basis', {
173+
Basis = ffi_metatype('godot_basis', {
174174
--- Basis constructor, called by the idiom `Basis(...)`.
175175
--
176176
-- * `Basis()`: `IDENTITY` basis matrix

src/godot_class.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ local ClassWrapper_cache = setmetatable({}, {
171171
--- MethodBind metatype, wrapper for `godot_method_bind`.
172172
-- These are returned by `ClassWrapper:__index` and GDNative's `godot_method_bind_get_method`.
173173
-- @type MethodBind
174-
local MethodBind = ffi.metatype('godot_method_bind', {
174+
local MethodBind = ffi_metatype('godot_method_bind', {
175175
--- Calls the method in `object`.
176176
-- @function __call
177177
-- @tparam Object object

src/godot_quat.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ methods.IDENTITY = ffi_new('godot_quat', { elements = { 0, 0, 0, 1 } })
121121

122122
--- Metamethods
123123
-- @section metamethods
124-
Quat = ffi.metatype('godot_quat', {
124+
Quat = ffi_metatype('godot_quat', {
125125
--- Quat constructor, called by the idiom `Quat(...)`.
126126
--
127127
-- * `Quat()`: `IDENTITY` quaternion (`Quat() == Quat(0, 0, 0, 1)`)

src/godot_string_name.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ local methods = {
4646
-- @return[type=const void *]
4747
get_data_unique_pointer = api.godot_string_name_get_data_unique_pointer,
4848
}
49-
StringName = ffi.metatype('godot_string_name', {
49+
StringName = ffi_metatype('godot_string_name', {
5050
--- StringName constructor, called by the idiom `StringName(name)`.
5151
-- @function __new
5252
-- @param[opt=""] name Name, stringified with `GD.str`

0 commit comments

Comments
 (0)