Rearranged Linux tests

This commit is contained in:
Pavel Kirienko
2014-09-13 17:59:31 +04:00
parent 07f60b4aab
commit 704f89ce07
8 changed files with 23 additions and 11 deletions
+14
View File
@@ -0,0 +1,14 @@
/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#pragma once
#include <stdexcept>
#ifndef STRINGIZE
# define STRINGIZE2(x) #x
# define STRINGIZE(x) STRINGIZE2(x)
#endif
#define ENFORCE(x) if (!(x)) { throw std::runtime_error(__FILE__ ":" STRINGIZE(__LINE__) ": " #x); }