aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-16 19:37:11 +0000
committerEddie Hung <eddie@fpgeh.com>2019-08-16 19:37:11 +0000
commit3b19c3657cda6d972bd3b1c3eeacdfca5fb35de8 (patch)
treea692c2fcc8ad1b513bd805dbfec03376bdfd30f5 /kernel
parent29e14e674eccc173b354dacd96fdbe0040c423d0 (diff)
downloadyosys-3b19c3657cda6d972bd3b1c3eeacdfca5fb35de8.tar.gz
yosys-3b19c3657cda6d972bd3b1c3eeacdfca5fb35de8.tar.bz2
yosys-3b19c3657cda6d972bd3b1c3eeacdfca5fb35de8.zip
Move namespace alias
Diffstat (limited to 'kernel')
-rw-r--r--kernel/yosys.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h
index 895286a53..a80cb00b4 100644
--- a/kernel/yosys.h
+++ b/kernel/yosys.h
@@ -210,7 +210,6 @@ namespace RTLIL {
struct Module;
struct Design;
struct Monitor;
- namespace ID {}
}
namespace AST {
@@ -225,7 +224,6 @@ using RTLIL::Wire;
using RTLIL::Cell;
using RTLIL::Module;
using RTLIL::Design;
-namespace ID = ::YOSYS_NAMESPACE::RTLIL::ID;
namespace hashlib {
template<> struct hash_ops<RTLIL::Wire*> : hash_obj_ops {};
@@ -317,6 +315,7 @@ RTLIL::IdString new_id(std::string file, int line, std::string func);
//
#define ID(_id) ([]() { const char *p = "\\" #_id, *q = p[1] == '$' ? p+1 : p; \
static const YOSYS_NAMESPACE_PREFIX RTLIL::IdString id(q); return id; })()
+namespace ID = RTLIL::ID;
RTLIL::Design *yosys_get_design();
std::string proc_self_dirname();