scsys_macros/lib.rs
1/*
2 Appellation: scsys-macros <library>
3 Contributors: FL03 <jo3mccain@icloud.com>
4*/
5//! procedural macros for the `scsys` ecosystem
6extern crate proc_macro;
7
8use proc_macro::TokenStream;
9
10/// A procedural macro for generativly creating getter methods; i.e. $field_name() -> &$field_type and $field_name_mut() -> &mut $field_type
11#[proc_macro]
12pub fn getter(input: TokenStream) -> TokenStream {
13 println!("display: {:?}", input);
14 input
15}