libcubescript/include/cubescript/cubescript_conf.hh

33 lines
842 B
C++
Raw Normal View History

2016-08-21 02:34:03 +02:00
#ifndef LIBCUBESCRIPT_CUBESCRIPT_CONF_HH
#define LIBCUBESCRIPT_CUBESCRIPT_CONF_HH
#include <limits.h>
#include <ostd/types.hh>
#include <ostd/memory.hh>
#include <ostd/string.hh>
#include <ostd/vector.hh>
#include <ostd/map.hh>
#include <ostd/stream.hh>
2016-08-21 02:34:03 +02:00
namespace cscript {
using CsInt = int;
using CsFloat = float;
2016-09-10 17:38:35 +02:00
using CsString = ostd::String;
2016-08-21 02:34:03 +02:00
template<typename K, typename V>
2016-09-10 17:38:35 +02:00
using CsMap = ostd::Map<K, V>;
2016-08-21 02:34:03 +02:00
template<typename T>
2016-09-10 17:38:35 +02:00
using CsVector = ostd::Vector<T>;
2016-08-21 02:34:03 +02:00
using CsStream = ostd::Stream;
2016-08-21 02:34:03 +02:00
constexpr CsInt const CsIntMin = INT_MIN;
constexpr CsInt const CsIntMax = INT_MAX;
constexpr auto const IntFormat = "%d";
constexpr auto const FloatFormat = "%.7g";
constexpr auto const RoundFloatFormat = "%.1f";
} /* namespace cscript */
#endif /* LIBCUBESCRIPT_CUBESCRIPT_CONF_HH */