Crate awint_macro_internals
source · [−]Expand description
This crate exists because of limitations with proc-macro
crates. We need
to be able to test errors returned from the code generation function while
also being able to test the macros themselves.
Functions
Code generation for concatenations of components macros. input
is the
string input to the macro. specified_initialization
is true if source has
a specified default state, and fillers can be used in the source.
construct_fn
is the construction function used (e.x. “zero”, “umax”, etc,
“zero” should be used by default). inlawi
is if an InlAwi
should be the
return type. return_souce
is if the value of the source should be
returned.
Returns architecture-independent Rust code that returns an
InlAwi
preset with the value of bits
.
Returns architecture-independent Rust code that returns an
InlAwi
type with bitwidth bw
.