ds_stack_create

Creates a new stack, returning its id.

Syntax:

GML Code Example

ds_stack_create();


Returns: Real


Description

This function will create a new stack data-structure and return the index value. This value should be stored in a variable and used in all further function calls relating to the stack.


Example:

GML Code Example

stack = ds_stack_create();

This will create a new stack and assign its index id to the instance variable "stack".


Back: Stacks



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here