equal
deleted
inserted
replaced
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); |