HermesCommon  3.0
memory_handling.h File Reference

File containing common definitions, and basic global enums etc. for HermesCommon. More...

#include "exceptions.h"
#include "api.h"
#include <cstddef>

Go to the source code of this file.

Classes

class  std::is_pod< ArrayItem >
 

Namespaces

 Hermes
 General namespace for the Hermes library.
 

Macros

#define static_assert(expr, msg)   true
 

Functions

template<typename Caller , typename ArrayItem >
ArrayItem * Hermes::calloc_with_check (int size, Caller *const caller, bool force_malloc=false)
 
template<typename ArrayItem >
ArrayItem * Hermes::calloc_with_check (int size, bool force_malloc=false)
 
template<typename Caller , typename ArrayItem >
ArrayItem * Hermes::malloc_with_check (int size, Caller *const caller, bool force_malloc=false)
 
template<typename ArrayItem >
ArrayItem * Hermes::malloc_with_check (int size, bool force_malloc=false)
 
template<typename ArrayItem >
ArrayItem * Hermes::malloc_with_check_direct_size (int size)
 
template<typename ArrayItem >
ArrayItem * Hermes::calloc_with_check_direct_size (int size)
 
template<typename Caller , typename ArrayItem >
ArrayItem * Hermes::realloc_with_check (ArrayItem *&original_array, int new_size, Caller *const caller)
 
template<typename ArrayItem >
ArrayItem * Hermes::realloc_with_check (ArrayItem *&original_array, int new_size)
 
template<typename ArrayItem >
void Hermes::free_with_check (ArrayItem *&ptr, bool force_malloc=false)
 

Detailed Description

File containing common definitions, and basic global enums etc. for HermesCommon.

Definition in file memory_handling.h.