lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> The following line always fails (5.1-alpha):
> 
>         luaL_checkudata(L, -1, "something");

>From the manual:

  Several functions in the auxiliary library are used to
  check C function arguments.
  Their names are always @id{luaL_check*} or @id{luaL_opt*}.
  All those functions raise an error if the check is not satisfied.
  Because the error message is formatted for arguments
  (e.g., @St{bad argument #1}),
  you should not use those functions for other stack values.

-- Roberto