Esempio n. 1
0
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();
}
Esempio n. 2
0
File: api.cpp Progetto: FTWahid/loot
unsigned int c_error(const loot::error& e) {
    extMessageStr = e.what();
    return e.code();
}