#pragma once #include "format_string.h" #include "macros.h" #include #include namespace NYsonPull { namespace NDetail { template [[noreturn]] ATTRIBUTE(noinline, cold) void fail( const TPositionInfo& info, Args&&... args) { auto formatted_message = format_string(std::forward(args)...); throw NException::TBadInput(formatted_message, info); } } }