History

Merged in bitbucket/bug/6 (pull request #2)

Bitbucket/bug/6

Aaron R Robinson committed 9 years ago

Commit 4d839d72 parents bf34adb eb8b09015 files · +1454 −136Browse files

Showing the changes to src/vm/tool_dispatch.cpp (1 of 15 files). Show all

Unified · Split

src/vm/tool_dispatch.cpp+2−5
@@ -127,13 +127,10 @@ void vm_tool_dispatch_t::on_exception_unhandled(vm_registers_t &r, const vm_stri · 126 unmodified lines
127127 _events.fire_event_callbacks(vm_event_t::exception_unhandled, cxt);
128128 }
129129
130−void vm_tool_dispatch_t::on_module_vm_load(std::shared_ptr<vm_module_t> &m, const vm_string_t &path)
130+void vm_tool_dispatch_t::on_module_vm_load(const loaded_vm_module_t &m)
131131 {
132− assert(m != nullptr);
133−
134132 vm_event_context_t cxt{};
135− cxt.value1.module = &m;
136− cxt.value2.str = &path;
133+ cxt.value1.loaded_mod = &m;
137134
138135 _events.fire_event_callbacks(vm_event_t::module_vm_load, cxt);
139136 }