Поэтому я хотел бы иметь что-то вроде этого:
Код: Выделить всё
#define LOCATION __FILE__ " : " __LINE__
throw std::exception(std::string("ABCD. ") + LOCATION);
Подробнее здесь: https://stackoverflow.com/questions/193 ... acros-in-c
Код: Выделить всё
#define LOCATION __FILE__ " : " __LINE__
throw std::exception(std::string("ABCD. ") + LOCATION);