miraland_sdk/
entrypoint_deprecated.rs1pub use miraland_program::entrypoint_deprecated::*;
11
12#[macro_export]
13#[deprecated(
14 since = "1.4.3",
15 note = "use miraland_program::entrypoint::entrypoint instead"
16)]
17macro_rules! entrypoint_deprecated {
18 ($process_instruction:ident) => {
19 #[no_mangle]
21 pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
22 let (program_id, accounts, instruction_data) =
23 unsafe { $crate::entrypoint_deprecated::deserialize(input) };
24 match $process_instruction(&program_id, &accounts, &instruction_data) {
25 Ok(()) => $crate::entrypoint_deprecated::SUCCESS,
26 Err(error) => error.into(),
27 }
28 }
29 };
30}