CoronaLuaCheckUserdata()

Revision Release 2024.3703
Keywords iOS, Solar2D Native, C, CoronaLua.h, CoronaLuaCheckUserdata
See also CoronaLua.h
Corona C Functions

Overview

Same as CoronaLuaToUserdata() except that this returns NULL if the userdata at index doesn’t have a metatable that matches metatableName.

Syntax

void* CoronaLuaCheckUserdata( lua_State* L, int index, const char metatableName[] )