diff options
author | 2017-02-07 20:07:56 +0100 | |
---|---|---|
committer | 2017-02-10 21:52:09 +0100 | |
commit | ab17457707eaab1ec5d3f4719704ccd25a235651 (patch) | |
tree | 42e034a901f16f281a65049a64eb72f76e3ba55f /src/lib/netlist/plib/palloc.h | |
parent | 041f7bb54952193083f5bbf507c1585fcaf21504 (diff) |
Make sure netlist includes are not found directly on include path.
Instead, they have to be prefixed by "netlist/". Removed unneeded link
librariers for nltool and nlwav along the way. (nw)
Diffstat (limited to 'src/lib/netlist/plib/palloc.h')
-rw-r--r-- | src/lib/netlist/plib/palloc.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h index 02249f09168..57dbff5588d 100644 --- a/src/lib/netlist/plib/palloc.h +++ b/src/lib/netlist/plib/palloc.h @@ -25,19 +25,26 @@ T *palloc(Args&&... args) } template<typename T> -void pfree(T *ptr) { delete ptr; } +void pfree(T *ptr) +{ + delete ptr; +} template<typename T> -inline T* palloc_array(const std::size_t num) +T* palloc_array(const std::size_t num) { return new T[num](); } template<typename T> -void pfree_array(T *ptr) { delete [] ptr; } +void pfree_array(T *ptr) +{ + delete [] ptr; +} template<typename T, typename... Args> -std::unique_ptr<T> make_unique(Args&&... args) { +std::unique_ptr<T> make_unique(Args&&... args) +{ return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); } |