test/error_test.cc
changeset 213 56579d12575b
parent 171 02f4d5d9bfd7
child 223 cfadfeef706f
equal deleted inserted replaced
3:5ec515685af0 4:137d02486fef
     1 /* -*- C++ -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2008
     5  * Copyright (C) 2003-2008
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
    56 
    56 
    57 //checking custom assert handler
    57 //checking custom assert handler
    58 #define LEMON_ASSERT_CUSTOM
    58 #define LEMON_ASSERT_CUSTOM
    59 
    59 
    60 static int cnt = 0;
    60 static int cnt = 0;
    61 void my_assert_handler(const char*, int, const char*, 
    61 void my_assert_handler(const char*, int, const char*,
    62 		       const char*, const char*) {
    62                        const char*, const char*) {
    63   ++cnt;
    63   ++cnt;
    64 }
    64 }
    65 
    65 
    66 #define LEMON_CUSTOM_ASSERT_HANDLER my_assert_handler
    66 #define LEMON_CUSTOM_ASSERT_HANDLER my_assert_handler
    67 #include <lemon/assert.h>
    67 #include <lemon/assert.h>