MCPcopy Create free account
hub / github.com/DavidColson/Polybox / Size

Function Size

source/userdata.cpp:510–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508// ***********************************************************************
509
510i32 Size(lua_State* L) {
511 UserData* pUserData = (UserData*)luaL_checkudata(L, 1, "UserData");
512 lua_pushinteger(L, pUserData->width * pUserData->height);
513 return 1;
514}
515
516// ***********************************************************************
517

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected