pub fn require_top_level() -> Result<(), ProgramError>Expand description
Require that the current instruction is NOT a CPI call.
Programs that should never be composed via CPI (governance, admin
instructions, emergency controls) should call this at the top of
their handler. Returns Err if the instruction is inside a CPI.