Skip to content
Snippets Groups Projects
Memleak_check.cpp 618 B
Newer Older
Pietro Incardona's avatar
Pietro Incardona committed
#include "config.h"
#include "Memleak_check.hpp"
#include "ptr_info.hpp"
Pietro Incardona's avatar
Pietro Incardona committed

// counter for allocation of new memory
long int new_data;
Pietro Incardona's avatar
Pietro Incardona committed

// counter to delete memory
size_t delete_data;

// structure that store all the active pointer
std::map<byte_ptr, ptr_info> active_ptr;
Pietro Incardona's avatar
Pietro Incardona committed

// Running process id
long int process_v_cl;

// Process to print
long int process_to_print = 0;

// A way to stop the color
std::string col_stop("\e[0m");

// Print a message when allocation with id==msg_on_alloc is performed
long int msg_on_alloc = -1;

// throw when allocation with id==throw_on_alloc is performed
long int thr_on_alloc = -1;