| 45 | |
| 46 | |
| 47 | static int str_len (lua_State *L) { |
| 48 | size_t l; |
| 49 | luaL_checklstring(L, 1, &l); |
| 50 | lua_pushinteger(L, (lua_Integer)l); |
| 51 | return 1; |
| 52 | } |
| 53 | |
| 54 | |
| 55 | /* translate a relative string position: negative means back from end */ |
nothing calls this directly
no test coverage detected