Ylva And Malin
Enumerations | Functions
ym_error.h File Reference
#include <ym_attributes.h>
Include dependency graph for ym_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ym_errc {
  ym_errc_success = (0 << 0),
  ym_errc_invalid_input = (1 << 0),
  ym_errc_bad_alloc = (1 << 1),
  ym_errc_mem_leak = (1 << 2),
  ym_errc_uninitialized = (1 << 3),
  ym_errc_system_error = (1 << 4),
  ym_errc_gl_error = (1 << 5),
  ym_errc_out_of_memory = (1 << 6),
  ym_errc_container_full = (1 << 7)
}
 Used to indicate erroneous behavior within a a function. More...
 

Functions

void ym_raise_error (ym_errc errc)
 Sets the new global error within the ym project. Only used for handling errors when testing. More...
 
ym_errc ym_clear_error ()
 Clears the global error and gets back its previous values. Only used for handling errors when testing. More...
 
const char * ym_errc_str (ym_errc errc)
 Translates an ym_errc to a human readable string. More...