Classes | Defines | 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

Defines

#define CHECK_MEMLEAK(OP)
#define EIGEN_STACK_ALLOCATION_LIMIT   100000000

Functions

void memoryleak ()
void test_exceptions ()

Define Documentation

#define CHECK_MEMLEAK (   OP)
Value:
{                                 \
    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.


Function Documentation

void memoryleak ( )

Definition at line 103 of file exceptions.cpp.

void test_exceptions ( )

Definition at line 121 of file exceptions.cpp.



libicr
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:34:05