lua-userdata Questions
2
Solved
How can I free memory allocated by lua_newuserdata?
I have a class called Foo, and this class has a constructor and desstructor, and I need execute both, but I don't know how to use the C++ opera...
Sanasanabria asked 15/2, 2014 at 2:31
1
Solved
I had this guy's problem:
Lua userdata array access and methods
wherein when I set the __index of my userdata's metatable, it always called the getter, instead of my other methods that weren't dec...
Americana asked 22/8, 2016 at 21:53
2
Solved
test.exe call addTest.lua and set the lua_testobj to the table, and addTest.lua call testobj.dll,
but testobj.dll can not get the "lua_testobj"
error msg is
addTest.lua:9 attempt to index loca...
Automat asked 17/12, 2014 at 2:38
1
Solved
I am writing in C a userdata type for use in Lua. It has some array-type properties and various methods aswell. Right now if u is of this type, I use u:set(k,v) resp. u:get(k) to access data and e....
Brassy asked 17/11, 2014 at 10:15
2
Solved
I think I saw somewhere a native function in Lua that can return a new userdata. Does it exist? Is it possible to create custom userdata from normal Lua script?
Macaque asked 11/5, 2014 at 12:4
1
Solved
I am still confused about registering Delphi userdata to Lua. To teach me the principle I tried to implement a Date(Time) type.
At the beginning this type should have three functions accessible to...
Harwin asked 1/12, 2011 at 11:12
2
Solved
I may be misunderstanding their use or misread the documentation, but how do I access members of a struct or class passed to Lua as light userdata? For example if a vector using the following struc...
Katiakatie asked 10/6, 2011 at 14:57
1
© 2022 - 2024 — McMap. All rights reserved.