mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Apply 'make format'
This commit is contained in:
parent
c6bce636ee
commit
91823c41c5
@ -76,22 +76,22 @@ public:
|
|||||||
// Construct
|
// Construct
|
||||||
VlCoroutineHandle(std::coroutine_handle<> coro = nullptr, const char* filename = nullptr,
|
VlCoroutineHandle(std::coroutine_handle<> coro = nullptr, const char* filename = nullptr,
|
||||||
int linenum = 0)
|
int linenum = 0)
|
||||||
: m_coro {
|
: m_coro{coro}
|
||||||
coro
|
|
||||||
}
|
|
||||||
#ifdef VL_DEBUG
|
#ifdef VL_DEBUG
|
||||||
, m_filename{filename}, m_linenum { linenum }
|
, m_filename{filename}
|
||||||
|
, m_linenum{linenum}
|
||||||
#endif
|
#endif
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
// Move the handle, leaving a nullptr
|
// Move the handle, leaving a nullptr
|
||||||
VlCoroutineHandle(VlCoroutineHandle&& moved)
|
VlCoroutineHandle(VlCoroutineHandle&& moved)
|
||||||
: m_coro {
|
: m_coro{std::exchange(moved.m_coro, nullptr)}
|
||||||
std::exchange(moved.m_coro, nullptr)
|
|
||||||
}
|
|
||||||
#ifdef VL_DEBUG
|
#ifdef VL_DEBUG
|
||||||
, m_filename{moved.m_filename}, m_linenum { moved.m_linenum }
|
, m_filename{moved.m_filename}
|
||||||
|
, m_linenum{moved.m_linenum}
|
||||||
#endif
|
#endif
|
||||||
{}
|
{
|
||||||
|
}
|
||||||
// Destroy if the handle isn't null
|
// Destroy if the handle isn't null
|
||||||
~VlCoroutineHandle() {
|
~VlCoroutineHandle() {
|
||||||
// Usually these coroutines should get resumed; we only need to clean up if we destroy a
|
// Usually these coroutines should get resumed; we only need to clean up if we destroy a
|
||||||
|
Loading…
Reference in New Issue
Block a user