| 35 | |
| 36 | |
| 37 | static int str_len (lua_State *L) { |
| 38 | size_t l; |
| 39 | luaL_checklstring(L, 1, &l); |
| 40 | lua_pushinteger(L, (lua_Integer)l); |
| 41 | return 1; |
| 42 | } |
| 43 | |
| 44 | |
| 45 | /* translate a relative string position: negative means back from end */ |
nothing calls this directly
no test coverage detected