Classes | Macros | Functions
exceptions.cpp File Reference
#include "main.h"
Include dependency graph for exceptions.cpp:

Go to the source code of this file.

Classes

struct  my_exception
 
class  ScalarWithExceptions
 

Macros

#define CHECK_MEMLEAK(OP)
 
#define EIGEN_STACK_ALLOCATION_LIMIT   100000000
 

Functions

ScalarWithExceptions conj (const ScalarWithExceptions &x)
 
ScalarWithExceptions imag (const ScalarWithExceptions &)
 
void memoryleak ()
 
ScalarWithExceptions real (const ScalarWithExceptions &x)
 
void test_exceptions ()
 

Macro Definition Documentation

#define CHECK_MEMLEAK (   OP)
Value:
{ \
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)); \
}
#define EIGEN_MAKESTRING(a)
Definition: Macros.h:485
return int(ret)+1
static int instances
Definition: exceptions.cpp:68
#define VERIFY(a)
Definition: main.h:325
static int countdown
Definition: exceptions.cpp:69

Definition at line 80 of file exceptions.cpp.

#define EIGEN_STACK_ALLOCATION_LIMIT   100000000

Definition at line 15 of file exceptions.cpp.

Function Documentation

Definition at line 74 of file exceptions.cpp.

Definition at line 73 of file exceptions.cpp.

void memoryleak ( )

Definition at line 92 of file exceptions.cpp.

Definition at line 72 of file exceptions.cpp.

void test_exceptions ( )

Definition at line 110 of file exceptions.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:29