History

Remove 'using namespace' statements from all but the execution table file.

arr committed 9 years ago

Commit 2519a931 parent 68d4d6931 files · +725 −426Browse files

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

Unified · Split

src/vm/module_resolver.cpp+10−5
@@ -12,7 +12,12 @@ · 11 unmodified lines
1212 #include <exceptions.h>
1313 #include "module_resolver.h"
1414
15−using namespace disvm::runtime;
15+using disvm::debug::component_trace_t;
16+using disvm::debug::log_level_t;
17+
18+using disvm::runtime::default_resolver_t;
19+using disvm::runtime::vm_module_t;
20+using disvm::runtime::vm_module_resolver_t;
1621
1722 // Empty destructor for vm module resolver 'interface'
1823 vm_module_resolver_t::~vm_module_resolver_t()
@@ -34,9 +39,9 @@ bool default_resolver_t::try_resolve_module(const char *path, std::unique_ptr<vm · 15 unmodified lines
3439 {
3540 assert(path != nullptr);
3641
37− auto log = debug::is_component_tracing_enabled<debug::component_trace_t::module>();
42+ auto log = disvm::debug::is_component_tracing_enabled<component_trace_t::module>();
3843 if (log)
39− debug::log_msg(debug::component_trace_t::module, debug::log_level_t::debug, "resolve: try module path: >>%s<<", path);
44+ disvm::debug::log_msg(component_trace_t::module, log_level_t::debug, "resolve: try module path: >>%s<<", path);
4045
4146 auto module_file = std::ifstream{ path, std::ifstream::binary };
4247 if (!module_file.is_open())
@@ -46,13 +51,13 @@ bool default_resolver_t::try_resolve_module(const char *path, std::unique_ptr<vm · 3 unmodified lines
4651 {
4752 p.append(path);
4853 if (log)
49− debug::log_msg(debug::component_trace_t::module, debug::log_level_t::debug, "resolve: try module path: >>%s<<", p.c_str());
54+ disvm::debug::log_msg(component_trace_t::module, log_level_t::debug, "resolve: try module path: >>%s<<", p.c_str());
5055
5156 module_file = std::ifstream{ p, std::ifstream::binary };
5257 if (module_file.is_open())
5358 {
5459 if (log)
55− debug::log_msg(debug::component_trace_t::module, debug::log_level_t::debug, "resolve: successful modified module path: >>%s<< >>%s<<", path, p.c_str());
60+ disvm::debug::log_msg(component_trace_t::module, log_level_t::debug, "resolve: successful modified module path: >>%s<< >>%s<<", path, p.c_str());
5661
5762 break;
5863 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t