partial_idl_parser/
path_macro.rs

1/// Get the IDL from the default directory `../../target/idl/` given a program name
2#[macro_export]
3macro_rules! idl_path {
4    ($program_name:expr) => {
5        include_str!(concat!("../../target/idl/", $program_name, ".json"))
6    };
7}
8
9/// Get the IDL from the custom directory given a program name.
10#[macro_export]
11macro_rules! idl_custom_path {
12    ($relative_dir_path:expr, $program_name:expr) => {
13        include_str!(concat!($relative_dir_path, $program_name, ".json"))
14    };
15}