ocarina/tests/core/test.h

26 lines
336 B
C++

/*
* Copyright 2015 (c) Anna Schumaker.
*/
#ifndef TESTS_CORE_TESTS_H
#define TESTS_CORE_TESTS_H
extern "C" {
#include <tests/test.h>
}
#include <sstream>
#undef tostring
template <class T>
static inline char *tostring(T s)
{
std::stringstream ss;
ss << s;
return strdup(ss.str().c_str());
}
#endif /* TESTS_CORE_TESTS_H */