Program feature-flag entrypoint (#11144)

This commit is contained in:
Tyera Eulberg 2020-07-21 14:36:28 -06:00 committed by GitHub
parent 6c38369042
commit 231e2387db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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