⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nlexception.cpp

📁 一些unix下的c/c++的util包
💻 CPP
字号:
#include "nlkit/NLException.h"
#include <ostream>
using namespace nlkit;
using namespace std;

void NLException::print(std::ostream& os) const
{
    os << "throw " << name() << " "; 
    if(m_file && m_line > 0)
    {
       os << "from " << m_file << ':' << m_line << ": ";
    }
}

ostream& operator<<(ostream& out, const NLException& ex)
{
    ex.print(out);
    return out;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -