Changeset 865 for library

Show
Ignore:
Timestamp:
03/15/10 18:31:30 (14 years ago)
Author:
mido
Message:

a small patch of LOG_LEVEL and also a minor change made on the testsuite

Location:
library
Files:
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/bdmroot.h

    r863 r865  
    7676 
    7777// MUZEME INTERNE POUZIVAT ENUMY, A KLIDNE MENIT JEJICH PORADI, DIKY TOMUHLE MAKRU SE VZDY NAMAPUJI NA TY SPRAVNE STRINGY  
    78 #define LOG_LEVEL(CLASSNAME,...) private: friend class logged_options<CLASSNAME>; static const Array<string> &__option_names() { static const Array<string> option_names( "{"#__VA_ARGS__" }" ); return option_names; }; public: enum possible_options { __VA_ARGS__ }; logged_options<CLASSNAME> log_level; 
     78#define LOG_LEVEL(CLASSNAME,...) private: friend class logged_options<CLASSNAME>; static const Array<string> &option_names() { static const Array<string> option_names( "{"#__VA_ARGS__" }" ); return option_names; }; public: enum possible_options { __VA_ARGS__ }; logged_options<CLASSNAME> log_level; 
    7979 
    8080//forward declaration 
  • library/tests/testsuite/testsuite.cpp

    r722 r865  
    1212        if ( argc > 1 ) { 
    1313                if ( !strcmp ( argv[1], "print" ) ) 
     14                { 
    1415                        print_test_list(); 
     16                        return 0; 
     17                } 
    1518                else 
    1619                        pick_selected_tests ( argc, argv );