Beispiel #1
0
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");
	}
}
Beispiel #2
0
shader<Stage>::shader(std::string source, bool compile_now) : handle_(0), source_(source), compile_status_(0), link_status_(0) {
    if (compile_now) compile_();
}