Macro libyml::STACK_INIT

source ·
macro_rules! STACK_INIT {
    ($stack:expr, $type:ty) => { ... };
}
Expand description

Initializes a stack with a specified type and allocates memory for it.

§Parameters

  • stack: A mutable reference to the stack to be initialized.
  • type: The type of elements that will be stored in the stack.

§Return

This function does not return a value. It initializes the stack with the given type and allocates memory for it. The memory is allocated using the yaml_malloc function, and the start, top, and end pointers of the stack are set accordingly.