local txt = sel:describe_size(); */ gives a textual description of the selection size */
| 959 | /* local txt = sel:describe_size(); */ |
| 960 | /* gives a textual description of the selection size */ |
| 961 | staticfn int |
| 962 | l_selection_size_description(lua_State *L) |
| 963 | { |
| 964 | int argc = lua_gettop(L); |
| 965 | |
| 966 | if (argc == 1) { |
| 967 | struct selectionvar *sel = l_selection_check(L, 1); |
| 968 | char buf[BUFSZ]; |
| 969 | |
| 970 | lua_pushstring(L, selection_size_description(sel, buf)); |
| 971 | return 1; |
| 972 | } else { |
| 973 | nhl_error(L, "wrong parameters"); |
| 974 | /*NOTREACHED*/ |
| 975 | } |
| 976 | return 0; |
| 977 | } |
| 978 | |
| 979 | RESTORE_WARNING_UNREACHABLE_CODE |
| 980 |
nothing calls this directly
no test coverage detected