mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(big): add assertion to BigStack::Free
This commit is contained in:
parent
0a941aaa08
commit
0197d20ca0
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ BigBuffer& BigStack::Alloc(uint32_t* count) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void BigStack::Free(uint32_t count) {
|
void BigStack::Free(uint32_t count) {
|
||||||
|
STORM_ASSERT(count <= this->m_used);
|
||||||
|
|
||||||
this->m_used -= count;
|
this->m_used -= count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue