1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/// Defines the entrypoint for a `star_frame` program.
///
/// This wraps the default [`pinocchio::entrypoint!`] macro and only needs to take in
/// the [`StarFrameProgram`](crate::prelude::StarFrameProgram) type. This will be automatically
/// called by the [`StarFrameProgram`](star_frame_proc::StarFrameProgram) derive macro if the
/// `no_entrypoint` argument is not present.
///
/// # Example
/// ```
/// # #[macro_use] extern crate star_frame;
/// # fn main() {}
/// use star_frame::prelude::*;
///
/// #[derive(StarFrameProgram)]
/// #[program(
/// id = System::ID,
/// instruction_set = (),
/// // By default, the `StarFrameProgram` derive macro will already call `star_frame_entrypoint`
/// no_entrypoint
/// )]
/// pub struct MyProgram;
///
/// star_frame_entrypoint!(MyProgram);
/// ```
;