mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-23 17:43:06 +03:00
modify macro names
This commit is contained in:
parent
f16bb70da9
commit
ee30ad97cc
@ -14,8 +14,10 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
/// Constructs an input section to store data parsed from a Leo input file.
|
||||
/// Constructs sections that pass variables to the main function through the input keyword.
|
||||
#[macro_export]
|
||||
macro_rules! input_section_impl {
|
||||
macro_rules! record_input_section {
|
||||
($($name: ident), *) => ($(
|
||||
|
||||
/// An input section declared in an input file with `[$name]`.
|
||||
@ -71,8 +73,10 @@ macro_rules! input_section_impl {
|
||||
)*)
|
||||
}
|
||||
|
||||
/// Constructs an input section to store data parsed from a Leo input file.
|
||||
/// Constructs sections that pass variables directly to the main function.
|
||||
#[macro_export]
|
||||
macro_rules! main_input_definitions {
|
||||
macro_rules! main_input_section {
|
||||
($($name: ident), *) => ($(
|
||||
|
||||
/// `[$name]` program input section.
|
||||
|
@ -19,4 +19,4 @@ use leo_input::{definitions::Definition, InputParserError};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
main_input_definitions!(ConstantInput);
|
||||
main_input_section!(ConstantInput);
|
||||
|
@ -19,4 +19,4 @@ use leo_input::{definitions::Definition, InputParserError};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
main_input_definitions!(MainInput);
|
||||
main_input_section!(MainInput);
|
||||
|
@ -19,4 +19,4 @@ use leo_input::{definitions::Definition, InputParserError};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
input_section_impl!(Registers);
|
||||
record_input_section!(Registers);
|
||||
|
@ -19,4 +19,4 @@ use leo_input::{definitions::Definition, InputParserError};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
input_section_impl!(Record);
|
||||
record_input_section!(Record);
|
||||
|
@ -19,4 +19,4 @@ use leo_input::{definitions::Definition, InputParserError};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
input_section_impl!(StateLeaf);
|
||||
record_input_section!(StateLeaf);
|
||||
|
@ -19,4 +19,4 @@ use leo_input::{definitions::Definition, InputParserError};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
|
||||
input_section_impl!(State);
|
||||
record_input_section!(State);
|
||||
|
Loading…
Reference in New Issue
Block a user