change modules when updating code index (re: issue #27)
This commit is contained in:
@@ -774,3 +774,12 @@ macro_rules! return_from_clause {
|
||||
Ok(())
|
||||
}}
|
||||
}
|
||||
|
||||
macro_rules! set_code_index {
|
||||
($idx:expr, $ip:expr, $mod_name:expr) => {{
|
||||
let mut idx = $idx.0.borrow_mut();
|
||||
|
||||
idx.0 = $ip;
|
||||
idx.1 = $mod_name.clone();
|
||||
}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user