#include "main.h"
Go to the source code of this file.
Classes | |
| struct | my_exception |
| class | ScalarWithExceptions |
Defines | |
| #define | CHECK_MEMLEAK(OP) |
| #define | EIGEN_STACK_ALLOCATION_LIMIT 100000000 |
Functions | |
| void | memoryleak () |
| void | test_exceptions () |
| #define CHECK_MEMLEAK | ( | OP | ) |
{ \
ScalarWithExceptions::countdown = 100; \
int before = ScalarWithExceptions::instances; \
bool exception_thrown = false; \
try { OP; } \
catch (my_exception) { \
exception_thrown = true; \
VERIFY(ScalarWithExceptions::instances==before && "memory leak detected in " && EIGEN_MAKESTRING(OP)); \
} \
VERIFY(exception_thrown && " no exception thrown in " && EIGEN_MAKESTRING(OP)); \
}
Definition at line 91 of file exceptions.cpp.
| #define EIGEN_STACK_ALLOCATION_LIMIT 100000000 |
Definition at line 30 of file exceptions.cpp.
| void memoryleak | ( | ) |
Definition at line 103 of file exceptions.cpp.
| void test_exceptions | ( | ) |
Definition at line 121 of file exceptions.cpp.