unfortunately, luaL_testudata() appeared with 5.2 ... and I'm trying to be compatible with 5.1 as well.
So I created a custom wrapper for 5.1
Le mardi 1 mai 2018 à 23:52:19 UTC+2, Javier Guerra Giraldez <email@example.com> a écrit :
On 1 May 2018 at 22:36, Laurent FAILLIE <firstname.lastname@example.org> wrote: > Hello, > > Reading example in https://www.lua.org/pil/28.2.html, I guessed that > luaL_checkudata() only return a NULL pointer if the argument doesn't match > an user data of the given type. > But unfortunately, it raise a fatal error :