Skip to content
Snippets Groups Projects
Commit a1c9250c authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adjustment for SE_CLASS2

parent a616ad86
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,12 @@ inline static void get_color(size_t project_id, size_t size, std::string & col)
}
}
/*! \brief Given the structure id it convert to a human readable structure string
*
* \param project_id id of the project
* \param prj string that identify the project
*
*/
inline static void get_structure(size_t struct_id, std::string & str)
{
switch (struct_id)
......@@ -162,6 +168,13 @@ inline static void get_structure(size_t struct_id, std::string & str)
}
}
/*! \brief Given the project id it convert to a human readable project string
*
* \param project_id id of the project
* \param prj string that identify the project
*
*/
inline static void get_project(size_t project_id, std::string & prj)
{
switch (project_id)
......@@ -184,9 +197,9 @@ inline static void get_project(size_t project_id, std::string & prj)
}
}
/*! \brief Print all active pointer
/*! \brief Print all active structures
*
* Print all active pointer
* Print all active structures
*
*/
static void print_alloc()
......@@ -251,6 +264,9 @@ static bool check_new(const void * data, size_t sz, size_t struct_id, size_t pro
if (msg_on_alloc == new_data)
std::cout << "Detected allocation: " << __FILE__ << ":" << __LINE__ << " id=" << msg_on_alloc << "\n";
if (thr_on_alloc == new_data)
throw MEM_ERROR;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment