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