Name
luaL_checkid -- get object identifier from the stack (V5.0)
Synopsis
void luaL_checkid(lua_State *L, int numArg, lua_ID *id);
Function
This is not an official Lua API but a Hollywood extension. luaL_checkid() checks if there is a Hollywood object identifier at the given stack index. If there is, it will be written to the lua_ID that has been passed to this function. Otherwise, luaL_checkid() will jump directly into Hollywood's error handler.

A Hollywood object identifier can either be a numerical value or a value of the LUA_TLIGHTUSERDATA type. See Object identifiers for details.

Designer compatibility
Unsupported

Inputs
L
pointer to the lua_State
numArg
stack index to examine
id
pointer to a lua_ID to receive the object identifier

Show TOC