src/driver.h
changeset 8051 0cb6e84eb367
parent 7318 632cd0497770
child 8112 24b89cd40bfd
equal deleted inserted replaced
8050:9cfe603560ac 8051:0cb6e84eb367
    77 		/* Prefix the name with driver type to make it unique */
    77 		/* Prefix the name with driver type to make it unique */
    78 		char buf[32];
    78 		char buf[32];
    79 		strecpy(buf, GetDriverTypeName(type), lastof(buf));
    79 		strecpy(buf, GetDriverTypeName(type), lastof(buf));
    80 		strecpy(buf + 5, name, lastof(buf));
    80 		strecpy(buf + 5, name, lastof(buf));
    81 
    81 
    82 #if !defined(NDEBUG)
    82 #if !defined(NDEBUG) || defined(WITH_ASSERT)
    83 		/* NDEBUG disables asserts and gives a warning: unused variable 'P' */
    83 		/* NDEBUG disables asserts and gives a warning: unused variable 'P' */
    84 		std::pair<Drivers::iterator, bool> P =
    84 		std::pair<Drivers::iterator, bool> P =
    85 #endif /* !NDEBUG */
    85 #endif /* !NDEBUG */
    86 		GetDrivers().insert(Drivers::value_type(buf, this));
    86 		GetDrivers().insert(Drivers::value_type(buf, this));
    87 		assert(P.second);
    87 		assert(P.second);