ensureSlots method

void ensureSlots(
  1. int numSlots
)

Ensures that the foreign method stack has at least numSlots available for use, growing the stack if needed.

Does not shrink the stack if it has more than enough slots.

It is an error to call this from a finalizer.

Implementation

void ensureSlots(int numSlots) {
  _bindings.wrenEnsureSlots(_ptrVm, numSlots);
}