mirror of
https://github.com/CompeyDev/lei.git
synced 2025-05-04 10:43:49 +01:00
refactor: rename package internal
->ffi
& fix compile err
Fixed a compile error to do with passing too many arguments to `lua_setuserdatametatable` when it only accepts 2.
This commit is contained in:
parent
725efd14f8
commit
d82a23b44c
6 changed files with 9 additions and 5 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
|||
[submodule "internal/luau"]
|
||||
path = internal/luau
|
||||
url = https://github.com/luau-lang/luau
|
||||
[submodule "ffi/luau"]
|
||||
path = ffi/luau
|
||||
url = https://github.com/luau-lang/luau.git
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package internal
|
||||
package ffi
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -Iluau/VM/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package internal
|
||||
package ffi
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -Iluau/VM/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include
|
||||
|
@ -697,7 +697,7 @@ func GetUserdataDtor(L *LuaState, tag int32) LuaDestructor {
|
|||
}
|
||||
|
||||
func SetUserdataMetatable(L *LuaState, tag int32, idx int32) {
|
||||
C.lua_setuserdatametatable(L, C.int(tag), C.int(idx))
|
||||
C.lua_setuserdatametatable(L, C.int(idx))
|
||||
}
|
||||
|
||||
func GetUserdataMetatable(L *LuaState, tag int32) {
|
||||
|
|
1
ffi/luau
Submodule
1
ffi/luau
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c51743268bcbe5c5af1bd78bcacaefe7f6fe3391
|
|
@ -1,4 +1,4 @@
|
|||
package internal
|
||||
package ffi
|
||||
|
||||
//#include <stdlib.h>
|
||||
import "C"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//go:build !LUAU_VECTOR4
|
||||
|
||||
package internal
|
||||
package ffi
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -Iluau/VM/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include
|
||||
|
|
Loading…
Add table
Reference in a new issue