summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pgsl.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-09-29 22:35:18 +0200
committer couriersud <couriersud@gmx.org>2020-09-30 08:37:18 +0200
commitd838120e37300e42b940b8bdfaf41e0bfada4037 (patch)
tree4039f94f1f92531bcd677fa9aa094be1f1c56e26 /src/lib/netlist/plib/pgsl.h
parent9a08e63fd3c462dcca28efa076121528ff4500e2 (diff)
netlist: Rewrote frontier documentation.
* Also includes a small optimization for FP signal code.
Diffstat (limited to 'src/lib/netlist/plib/pgsl.h')
-rw-r--r--src/lib/netlist/plib/pgsl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pgsl.h b/src/lib/netlist/plib/pgsl.h
index 4ddc957b9ac..cb95ecc334c 100644
--- a/src/lib/netlist/plib/pgsl.h
+++ b/src/lib/netlist/plib/pgsl.h
@@ -116,6 +116,11 @@ namespace plib {
using pgsl::narrow_cast;
+ /// \brief cast to void *
+ ///
+ /// The purpose here is to help identifiy casts to void in the code.
+ /// These case usuallyindicate some wizard assumptioms which should be easily
+ /// be easy to identify.
template <typename T>
constexpr void * void_ptr_cast(T *ptr) noexcept { return static_cast<void *>(ptr); }