コード例 #1
0
ファイル: filter.cpp プロジェクト: djc2k/sysdig
sinsp_filter* sinsp_filter_compiler::compile()
{
	try
	{
		return compile_();
	}
	catch(sinsp_exception& e)
	{
		delete m_filter;
		throw e;
	}
	catch(...)
	{
		delete m_filter;
		throw sinsp_exception("error parsing the filter string");
	}
}
コード例 #2
0
ファイル: shader.cpp プロジェクト: paulhilbert/harmont
shader<Stage>::shader(std::string source, bool compile_now) : handle_(0), source_(source), compile_status_(0), link_status_(0) {
    if (compile_now) compile_();
}