MAX_FFI_RETICLE_MARKS

Constant MAX_FFI_RETICLE_MARKS 

Source
pub const MAX_FFI_RETICLE_MARKS: c_int = _; // 4_096i32
Expand description

Largest marks_len ballistics_hold_point_in_reticle will accept (MBA-1361).

Mirrors MAX_FFI_DRAG_TABLE_LEN and exists for the same reason (MBA-1407): the export copies a caller-owned array whose length it cannot otherwise verify, so an unbounded len would let one call request a multi-gigabyte read. It is also crate::reticle::MAX_RETICLE_MARKS, so the C ABI and the Rust API reject the same inputs. Real reticles carry tens of marks; a dense tree carries a few hundred.