Move namespace alias

This commit is contained in:
Eddie Hung 2019-08-16 19:37:11 +00:00
parent 29e14e674e
commit 3b19c3657c
1 changed files with 1 additions and 2 deletions

View File

@ -210,7 +210,6 @@ namespace RTLIL {
struct Module; struct Module;
struct Design; struct Design;
struct Monitor; struct Monitor;
namespace ID {}
} }
namespace AST { namespace AST {
@ -225,7 +224,6 @@ using RTLIL::Wire;
using RTLIL::Cell; using RTLIL::Cell;
using RTLIL::Module; using RTLIL::Module;
using RTLIL::Design; using RTLIL::Design;
namespace ID = ::YOSYS_NAMESPACE::RTLIL::ID;
namespace hashlib { namespace hashlib {
template<> struct hash_ops<RTLIL::Wire*> : hash_obj_ops {}; 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; \ #define ID(_id) ([]() { const char *p = "\\" #_id, *q = p[1] == '$' ? p+1 : p; \
static const YOSYS_NAMESPACE_PREFIX RTLIL::IdString id(q); return id; })() static const YOSYS_NAMESPACE_PREFIX RTLIL::IdString id(q); return id; })()
namespace ID = RTLIL::ID;
RTLIL::Design *yosys_get_design(); RTLIL::Design *yosys_get_design();
std::string proc_self_dirname(); std::string proc_self_dirname();