inline atomic and var.
This commit is contained in:
@@ -100,14 +100,14 @@ macro_rules! try_me_else {
|
||||
}
|
||||
|
||||
macro_rules! is_atomic {
|
||||
() => (
|
||||
Line::BuiltIn(BuiltInInstruction::IsAtomic)
|
||||
($reg:expr) => (
|
||||
Line::BuiltIn(BuiltInInstruction::IsAtomic($reg))
|
||||
)
|
||||
}
|
||||
|
||||
macro_rules! is_var {
|
||||
() => (
|
||||
Line::BuiltIn(BuiltInInstruction::IsVar)
|
||||
($reg:expr) => (
|
||||
Line::BuiltIn(BuiltInInstruction::IsVar($reg))
|
||||
)
|
||||
}
|
||||
|
||||
@@ -221,6 +221,12 @@ macro_rules! fail {
|
||||
)
|
||||
}
|
||||
|
||||
macro_rules! succeed {
|
||||
() => (
|
||||
Line::BuiltIn(BuiltInInstruction::Succeed)
|
||||
)
|
||||
}
|
||||
|
||||
macro_rules! duplicate_term {
|
||||
() => (
|
||||
Line::BuiltIn(BuiltInInstruction::DuplicateTerm)
|
||||
|
||||
Reference in New Issue
Block a user