Program feature-flag entrypoint (#11144) (#11152)

(cherry picked from commit 231e2387db)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2020-07-21 22:02:13 +00:00
committed by GitHub
parent e9b40db319
commit 61d9d40e48

View File

@ -35,6 +35,7 @@ pub const SUCCESS: u64 = 0;
macro_rules! entrypoint {
($process_instruction:ident) => {
/// # Safety
#[cfg(feature = "program")]
#[no_mangle]
pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
let (program_id, accounts, instruction_data) =