stackfree
stackfree |
Purpose
Release memory from the Mosel execution stack.
Synopsis
void stackfree(XPRMcontext ctx, void *top);
Arguments
ctx
|
Mosel's execution context
|
top
|
New stack level
|
Further information
This function restores the level of the Mosel execution stack to the specified address. This reference address is a pointer returned by a preceding call to
stackalloc and all the memory allocated by any following invocation of the memory allocator are also released (
i.e. if several memory blocks have been allocated on the stack only the first one must be released with this function independently of the relative order of the corresponding addresses).
Related topics