Skip to content

Commit

Permalink
Delete no_kwargs! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
carbotaniuman committed Jan 2, 2021
1 parent 93ec575 commit 2dcd811
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions vm/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
#[macro_export]
macro_rules! no_kwargs {
( $vm: ident, $args:ident ) => {
// Zero-arg case
if $args.kwargs.len() != 0 {
return Err($vm.new_type_error(format!(
"Expected no keyword arguments (got: {})",
$args.kwargs.len()
)));
}
};
}

#[macro_export]
macro_rules! py_module {
( $vm:expr, $module_name:expr, { $($name:expr => $value:expr),* $(,)? }) => {{
Expand Down

0 comments on commit 2dcd811

Please sign in to comment.