/
gsim047
/
udklib
Обзор
Документация
Войти
/
gsim047
/
udklib
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
udk/tResult.cpp
24 строки
412 B
Georgiy
first udk pack
17 июл 2018, 17:24
17 июл 2018, 17:24
a4ff2f3
Код
Авторство
О чём код?
#include "tResult.h" #include "fString.h" #include <typeinfo> tResult &tResult::operator=(const tResult &s) { if ( &s != this ){ code = s.code; msg = s.msg; } return *this; }// tResult::operator= void tResult::checkResult() const { if ( code ){ if ( !msg.empty() ) nError::Throw(msg); nError::Throw(getTypeName(typeid(*this).name()) + ": error " + ToString(code)); } }// tResult::checkResult