lei/ffi/vector3.go
Erica Marigold d82a23b44c
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.
2025-04-26 08:49:43 +01:00

14 lines
341 B
Go

//go:build !LUAU_VECTOR4
package ffi
/*
#cgo CFLAGS: -Iluau/VM/include -I/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/include
// #cgo LDFLAGS: -L${SRCDIR}/luau/cmake -lLuau.VM -lm -lstdc++
#include <lua.h>
*/
import "C"
func PushVector(L *LuaState, x float32, y float32, z float32) {
C.lua_pushvector(L, C.float(x), C.float(y), C.float(z))
}