Add a very simple test program
Not quite a unit test, it looks more like an example but still something.
This commit is contained in:
parent
12c01f6f3e
commit
3c318d6771
8 changed files with 119 additions and 0 deletions
|
@ -271,6 +271,10 @@ namespace wren {
|
|||
return nullptr != m_local->user_data;
|
||||
}
|
||||
|
||||
std::size_t VM::dynafunc_byte_size() const {
|
||||
return m_local->dynafunc.total_memory();
|
||||
}
|
||||
|
||||
void VM::ensure_slots (int num_slots) {
|
||||
wrenEnsureSlots(m_local->wvm, num_slots);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue