| 51 | |
| 52 | |
| 53 | static int str_len(lua_State *L) { |
| 54 | size_t l; |
| 55 | luaL_checklstring(L, 1, &l); |
| 56 | lua_pushinteger(L, (lua_Integer)l); |
| 57 | return 1; |
| 58 | } |
| 59 | |
| 60 | |
| 61 | /* translate a relative string position: negative means back from end */ |
nothing calls this directly
no test coverage detected