mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Internals: Allow VL_DANGLING on pointer const.
This commit is contained in:
parent
4a8c7e869f
commit
4cfa3f879a
@ -155,7 +155,7 @@
|
||||
///< After e.g. delete, set variable to NULL to indicate must not use later
|
||||
# define VL_DANGLING(var) \
|
||||
do { \
|
||||
(var) = NULL; \
|
||||
*const_cast<const void**>(reinterpret_cast<const void* const*>(&var)) = NULL; \
|
||||
} while (false)
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user