blob: e2244b5ef24931948b4dc15cb4fda23583ce619d [file] [log] [blame]
#pragma once
#include <system_error>
#define SYSCHECK(call) { auto __ret = (call); if (__ret < 0) { throw std::system_error(errno, std::system_category()); } }