solana_sdk/
entrypoint_deprecated.rs

1pub use solana_program::entrypoint_deprecated::*;
2
3#[macro_export]
4#[deprecated(
5    since = "1.4.3",
6    note = "use solana_program::entrypoint::entrypoint instead"
7)]
8macro_rules! entrypoint_deprecated {
9    ($process_instruction:ident) => {
10        /// # Safety
11        #[no_mangle]
12        pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
13            let (program_id, accounts, instruction_data) =
14                unsafe { $crate::entrypoint_deprecated::deserialize(input) };
15            match $process_instruction(&program_id, &accounts, &instruction_data) {
16                Ok(()) => $crate::entrypoint_deprecated::SUCCESS,
17                Err(error) => error.into(),
18            }
19        }
20    };
21}