Add asserts to explode the process earliest possible moment

This commit is contained in:
Mm2PL 2024-10-06 16:07:11 +02:00
parent 48a3adc8cf
commit 235da004cd
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -234,6 +234,12 @@ Plugin::~Plugin()
this->callbacks.clear();
lua_close(this->state_);
}
assert(this->ownedCommands.empty() &&
"This must be empty or destructor of sol::protected_function would "
"explode malloc structures later");
assert(this->callbacks.empty() &&
"This must be empty or destructor of sol::protected_function would "
"explode malloc structures later");
}
int Plugin::addTimeout(QTimer *timer)
{