| 424 | |
| 425 | |
| 426 | LUA_API lua_Unsigned lua_rawlen (lua_State *L, int idx) { |
| 427 | const TValue *o = index2value(L, idx); |
| 428 | switch (ttypetag(o)) { |
| 429 | case LUA_VSHRSTR: return tsvalue(o)->shrlen; |
| 430 | case LUA_VLNGSTR: return tsvalue(o)->u.lnglen; |
| 431 | case LUA_VUSERDATA: return uvalue(o)->len; |
| 432 | case LUA_VTABLE: return luaH_getn(hvalue(o)); |
| 433 | default: return 0; |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | |
| 438 | LUA_API lua_CFunction lua_tocfunction (lua_State *L, int idx) { |
nothing calls this directly
no test coverage detected