unsigned int c_error(const loot::error& e) { delete[] extMessageStr; try { extMessageStr = new char[strlen(e.what()) + 1]; strcpy(extMessageStr, e.what()); } catch (std::bad_alloc& e) { extMessageStr = NULL; } return e.code(); }
unsigned int c_error(const loot::error& e) { extMessageStr = e.what(); return e.code(); }