Skip to content
Snippets Groups Projects
Verified Commit 8943f0d7 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: new enable disable

parent eb2f80ee
Branches
Tags
No related merge requests found
Pipeline #5116 passed
...@@ -64,16 +64,22 @@ impl GameBoy { ...@@ -64,16 +64,22 @@ impl GameBoy {
} }
} }
pub fn enable_pedantic() { #[macro_export]
unsafe { macro_rules! enable_pedantic {
PEDANTIC = true; () => {
} unsafe {
$crate::diag::PEDANTIC = true;
}
};
} }
pub fn disable_pedantic() { #[macro_export]
unsafe { macro_rules! disable_pedantic {
PEDANTIC = false; () => {
} unsafe {
$crate::diag::PEDANTIC = false;
}
};
} }
#[macro_export] #[macro_export]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment