2016-08-21 00:34:03 +00: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>
|
2016-09-02 18:22:19 +00:00
|
|
|
#include <ostd/stream.hh>
|
2016-08-21 00:34:03 +00:00
|
|
|
|
|
|
|
namespace cscript {
|
|
|
|
using CsInt = int;
|
|
|
|
using CsFloat = float;
|
2016-09-10 15:38:35 +00:00
|
|
|
using CsString = ostd::String;
|
2016-08-21 00:34:03 +00:00
|
|
|
|
|
|
|
constexpr auto const IntFormat = "%d";
|
|
|
|
constexpr auto const FloatFormat = "%.7g";
|
|
|
|
constexpr auto const RoundFloatFormat = "%.1f";
|
2016-09-15 19:59:11 +00:00
|
|
|
|
|
|
|
constexpr auto const IvarFormat = "%s = %d";
|
|
|
|
constexpr auto const IvarHexFormat = "%s = 0x%X";
|
|
|
|
constexpr auto const IvarHexColorFormat = "%s = 0x%.6X (%d, %d, %d)";
|
|
|
|
constexpr auto const FvarFormat = "%s = %.7g";
|
|
|
|
constexpr auto const FvarRoundFormat = "%s = %.1f";
|
|
|
|
constexpr auto const SvarFormat = "%s = \"%s\"";
|
|
|
|
constexpr auto const SvarQuotedFormat = "%s = [%s]";
|
2016-08-21 00:34:03 +00:00
|
|
|
} /* namespace cscript */
|
|
|
|
|
|
|
|
#endif /* LIBCUBESCRIPT_CUBESCRIPT_CONF_HH */
|