diff --git a/flow/pua/flatbuffers/flatbuffers.go b/flow/pua/flatbuffers/flatbuffers.go index 2163417d30..43404b2cda 100644 --- a/flow/pua/flatbuffers/flatbuffers.go +++ b/flow/pua/flatbuffers/flatbuffers.go @@ -5,29 +5,29 @@ import ( ) func Loader(ls *lua.LState) int { - ls.PreloadModule("flatbuffers.binaryarray", FlatBuffers_BinaryArray_Loader) - ls.PreloadModule("flatbuffers.builder", FlatBuffers_Builder_Loader) - ls.PreloadModule("flatbuffers.numTypes", FlatBuffers_N_Loader) - ls.PreloadModule("flatbuffers.view", FlatBuffers_View_Loader) + ls.PreloadModule("flatbuffers.binaryarray", BinaryArray_Loader) + ls.PreloadModule("flatbuffers.builder", Builder_Loader) + ls.PreloadModule("flatbuffers.numTypes", N_Loader) + ls.PreloadModule("flatbuffers.view", View_Loader) m := ls.NewTable() - ls.Push(ls.NewFunction(FlatBuffers_N_Loader)) + ls.Push(ls.NewFunction(N_Loader)) ls.Call(0, 1) m.RawSetString("N", ls.Get(-1)) ls.Pop(1) - ls.Push(ls.NewFunction(FlatBuffers_View_Loader)) + ls.Push(ls.NewFunction(View_Loader)) ls.Call(0, 1) m.RawSetString("view", ls.Get(-1)) ls.Pop(1) - ls.Push(ls.NewFunction(FlatBuffers_BinaryArray_Loader)) + ls.Push(ls.NewFunction(BinaryArray_Loader)) ls.Call(0, 1) m.RawSetString("binaryArray", ls.Get(-1)) ls.Pop(1) - ls.Push(ls.NewFunction(FlatBuffers_Builder_Loader)) + ls.Push(ls.NewFunction(Builder_Loader)) ls.Call(0, 1) builder := ls.GetField(ls.Get(-1), "New") m.RawSetString("Builder", builder) diff --git a/flow/pua/flatbuffers/flatbuffers_binaryarray.go b/flow/pua/flatbuffers/flatbuffers_binaryarray.go index caa087c7fc..8fd9b88d8a 100644 --- a/flow/pua/flatbuffers/flatbuffers_binaryarray.go +++ b/flow/pua/flatbuffers/flatbuffers_binaryarray.go @@ -8,7 +8,7 @@ import ( var LuaBinaryArray = pua.LuaUserDataType[[]byte]{Name: "flatbuffers_binaryarray"} -func FlatBuffers_BinaryArray_Loader(ls *lua.LState) int { +func BinaryArray_Loader(ls *lua.LState) int { m := ls.NewTable() ls.SetField(m, "New", ls.NewFunction(BinaryArrayNew)) diff --git a/flow/pua/flatbuffers/flatbuffers_builder.go b/flow/pua/flatbuffers/flatbuffers_builder.go index 76c4902c76..cc5f7882d3 100644 --- a/flow/pua/flatbuffers/flatbuffers_builder.go +++ b/flow/pua/flatbuffers/flatbuffers_builder.go @@ -204,7 +204,7 @@ func (b *Builder) WriteVtable(ls *lua.LState) int { var LuaBuilder = pua.LuaUserDataType[*Builder]{Name: "flatbuffers_builder"} -func FlatBuffers_Builder_Loader(ls *lua.LState) int { +func Builder_Loader(ls *lua.LState) int { m := ls.NewTable() m.RawSetString("New", ls.NewFunction(BuilderNew)) diff --git a/flow/pua/flatbuffers/flatbuffers_numtypes.go b/flow/pua/flatbuffers/flatbuffers_numtypes.go index 9d62f197aa..2de312985a 100644 --- a/flow/pua/flatbuffers/flatbuffers_numtypes.go +++ b/flow/pua/flatbuffers/flatbuffers_numtypes.go @@ -169,7 +169,7 @@ func (n *N) Unpack(ls *lua.LState, buf []byte) lua.LValue { var LuaN = pua.LuaUserDataType[N]{Name: "flatbuffers_n"} -func FlatBuffers_N_Loader(ls *lua.LState) int { +func N_Loader(ls *lua.LState) int { mtidx := ls.CreateTable(0, 1) mtidx.RawSetString("Unpack", ls.NewFunction(NUnpack)) mt := LuaView.NewMetatable(ls) diff --git a/flow/pua/flatbuffers/flatbuffers_view.go b/flow/pua/flatbuffers/flatbuffers_view.go index ec796efd49..9eed2ef3a2 100644 --- a/flow/pua/flatbuffers/flatbuffers_view.go +++ b/flow/pua/flatbuffers/flatbuffers_view.go @@ -24,7 +24,7 @@ func CheckOffset(ls *lua.LState, idx int) int { return int(num) } -func FlatBuffers_View_Loader(ls *lua.LState) int { +func View_Loader(ls *lua.LState) int { m := ls.NewTable() ls.SetField(m, "New", ls.NewFunction(ViewNew))