diff options
Diffstat (limited to 'src/macros.rs')
-rw-r--r-- | src/macros.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/macros.rs b/src/macros.rs index fb10a07..233495f 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -40,6 +40,16 @@ macro_rules! rlua_assert { }; } +macro_rules! rlua_debug_assert { + ($cond:expr, $msg:expr) => { + debug_assert!($cond, concat!("rlua internal error: ", $msg)); + }; + + ($cond:expr, $msg:expr, $($arg:tt)+) => { + debug_assert!($cond, concat!("rlua internal error: ", $msg), $($arg)+); + }; +} + macro_rules! rlua_abort { ($msg:expr) => { { |