MPHELL  4.0.0
Functions
mphell-tmp.h File Reference

Declaration of internal MPHELL temporary memory functions. More...

#include <stdbool.h>
#include "mphell-errors.h"
Include dependency graph for mphell-tmp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void alloc_tmp_memory ()
 Allocate the stack for temporary elements, its size is defined in mphell-define.h.
 
void free_tmp_memory ()
 Free the stack for temporary elements.
 
uint32_t get_stack_size (uint8_t stack)
 Get the current size of stack nb stack. More...
 
bool verify_stack_size (uint32_t prev_size, uint8_t stack)
 Compare the current size and the previous size of stack nb stack. More...
 

Detailed Description

Declaration of internal MPHELL temporary memory functions.

Definition in file mphell-tmp.h.

Function Documentation

◆ get_stack_size()

uint32_t get_stack_size ( uint8_t  stack)

Get the current size of stack nb stack.

Parameters
stackTemporary memory stack to use
Returns
Current size of stack nb stack

Definition at line 320 of file mphell-tmp.c.

◆ verify_stack_size()

bool verify_stack_size ( uint32_t  prev_size,
uint8_t  stack 
)

Compare the current size and the previous size of stack nb stack.

Parameters
prev_sizePrevious size of the stack to compare with
stackTemporary memory stack to use
Returns
True if current size == previous size
False otherwise

Definition at line 338 of file mphell-tmp.c.