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)) ); \
}
#define EIGEN_MAKESTRING(a)
Definition: Macros.h:908
static bool dont_throw
static int instances
static int countdown

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.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:48