This commit is contained in:
Erin 2023-07-25 23:47:51 +02:00
parent 759514686a
commit 668b324cc8
2 changed files with 6 additions and 1 deletions

View file

@ -90,7 +90,9 @@ macro_rules! gen_valider {
$crate::gen_valider::inst_chk!( $crate::gen_valider::inst_chk!(
rest, $ityn, $($opcode),* rest, $ityn, $($opcode),*
) )
)|* => rest, )|*| $crate::gen_valider::inst_chk!(
rest, bbb, BRC
) => rest,
// The plebs // The plebs
_ => { _ => {

View file

@ -18,6 +18,9 @@ macro_rules! constmod {
} }
/// Invoke macro with bytecode definition format /// Invoke macro with bytecode definition format
///
/// Keep in mind BRC instruction is special-cased and you have to implement
/// it manually.
#[macro_export] #[macro_export]
macro_rules! invoke_with_def { macro_rules! invoke_with_def {
($macro:path) => { ($macro:path) => {