(a: lean_obj_arg)
| 132 | |
| 133 | #[inline] |
| 134 | pub unsafe fn lean_array_pop(a: lean_obj_arg) -> *mut lean_object { |
| 135 | let r = lean_ensure_exclusive_array(a); |
| 136 | let sz = lean_array_size(a); |
| 137 | if sz == 0 { |
| 138 | return r; |
| 139 | } |
| 140 | let sz = sz - 1; |
| 141 | let last = lean_array_cptr(r).add(sz); |
| 142 | *(raw_field!(lean_to_array(r), lean_array_object, m_size) as *mut usize) = sz; |
| 143 | lean_dec(*last); |
| 144 | r |
| 145 | } |
| 146 | |
| 147 | #[inline] |
| 148 | pub unsafe fn lean_array_uswap(a: lean_obj_arg, i: usize, j: usize) -> *mut lean_object { |
nothing calls this directly
no test coverage detected