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

Go to the source code of this file.

Macros

#define CHECK_MEMLEAK(OP)
 
#define EIGEN_STACK_ALLOCATION_LIMIT   100000000
 

Functions

 EIGEN_DECLARE_TEST (exceptions)
 

Macro Definition Documentation

◆ CHECK_MEMLEAK

#define CHECK_MEMLEAK (   OP)
Value:
{ \
int before = AnnoyingScalar::instances; \
bool exception_thrown = false; \
try { OP; } \
catch (my_exception) { \
exception_thrown = true; \
VERIFY(AnnoyingScalar::instances==before && "memory leak detected in " && EIGEN_MAKESTRING(OP)); \
} \
VERIFY( (AnnoyingScalar::dont_throw) || (exception_thrown && " no exception thrown in " && EIGEN_MAKESTRING(OP)) ); \
}

Definition at line 20 of file exceptions.cpp.

◆ EIGEN_STACK_ALLOCATION_LIMIT

#define EIGEN_STACK_ALLOCATION_LIMIT   100000000

Definition at line 15 of file exceptions.cpp.

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( exceptions  )

Definition at line 32 of file exceptions.cpp.

AnnoyingScalar::dont_throw
static bool dont_throw
Definition: AnnoyingScalar.h:98
AnnoyingScalar::countdown
static int countdown
Definition: AnnoyingScalar.h:97
EIGEN_MAKESTRING
#define EIGEN_MAKESTRING(a)
Definition: Macros.h:908
AnnoyingScalar::instances
static int instances
Definition: AnnoyingScalar.h:95
OP
#define OP(X)
Definition: gtsam/3rdparty/Eigen/blas/common.h:47
my_exception
Definition: AnnoyingScalar.h:20


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:46