mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 07:37:35 +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
|
///< After e.g. delete, set variable to NULL to indicate must not use later
|
||||||
# define VL_DANGLING(var) \
|
# define VL_DANGLING(var) \
|
||||||
do { \
|
do { \
|
||||||
(var) = NULL; \
|
*const_cast<const void**>(reinterpret_cast<const void* const*>(&var)) = NULL; \
|
||||||
} while (false)
|
} while (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user