Skip to content
Snippets Groups Projects
  • Alexander Turenko's avatar
    6a63b7c0
    module api/lua: add luaL_iscdata() function · 6a63b7c0
    Alexander Turenko authored
    It is useful to provide a module specific error when cdata expected, but
    a value of another type is passed.
    
    Alternative would be using of lua_type() to check against LUA_TCDATA,
    but this constant is not exposed for modules. See more in the
    luaL_iscdata() API comment.
    
    Part of #5273
    module api/lua: add luaL_iscdata() function
    Alexander Turenko authored
    It is useful to provide a module specific error when cdata expected, but
    a value of another type is passed.
    
    Alternative would be using of lua_type() to check against LUA_TCDATA,
    but this constant is not exposed for modules. See more in the
    luaL_iscdata() API comment.
    
    Part of #5273