Skip entrypoint in programs (#11176)

This commit is contained in:
Tyera Eulberg
2020-07-23 13:44:59 -06:00
committed by GitHub
parent c90de8978d
commit 6de8da05e3
2 changed files with 3 additions and 1 deletions

View File

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