Creates a new stack.
Creates a new axlStack object, which will accept to store a retrieve objects in a FIFO manner.
- Parameters:
-
| destroy_data | A function to be used to destroy data stored on the stack is the stack is deallocated containing data. This parameter is optional. If not provided, no automatic memory deallocation will peformed. |
- Returns:
- A newly allocated stack that must be deallocated by using axl_stack_destroy.