Skip to content

Commit

Permalink
modules getter
Browse files Browse the repository at this point in the history
Signed-off-by: eric-therond <eric.therond.fr@gmail.com>
  • Loading branch information
eric-therond committed Nov 25, 2023
1 parent 07ee5f3 commit 5f8c613
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ impl Engine {
self.interpreter.get_data_mut().merge(data)
}

pub fn get_modules(&mut self) -> &Vec<Ref<Module>> {
&self.modules
}

fn prepare_for_eval(&mut self, enable_tracing: bool) -> Result<()> {
self.interpreter.set_traces(enable_tracing);

Expand Down

0 comments on commit 5f8c613

Please sign in to comment.