// =====================================================================================================================
//  fennec, a free and open source game engine
//  Copyright © 2025 - 2026  Medusa Slockbower
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <https://www.gnu.org/licenses/>.
// =====================================================================================================================

#ifndef FENNEC_METAPROGRAMMING_INTEGER_H
#define FENNEC_METAPROGRAMMING_INTEGER_H

#include <fstream>

inline void integer_h()
{

	std::ofstream out("fennec/lang/integer.h");

	out << "// =====================================================================================================================" << '\n';
	out << "//  fennec, a free and open source game engine" << '\n';
	out << "//  Copyright © 2025 - 2026  Medusa Slockbower" << '\n';
	out << "//" << '\n';
	out << "//  This program is free software: you can redistribute it and/or modify" << '\n';
	out << "//  it under the terms of the GNU General Public License as published by" << '\n';
	out << "//  the Free Software Foundation, either version 3 of the License, or" << '\n';
	out << "//  (at your option) any later version." << '\n';
	out << "//" << '\n';
	out << "//  This program is distributed in the hope that it will be useful," << '\n';
	out << "//  but WITHOUT ANY WARRANTY; without even the implied warranty of" << '\n';
	out << "//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the" << '\n';
	out << "//  GNU General Public License for more details." << '\n';
	out << "//" << '\n';
	out << "//  You should have received a copy of the GNU General Public License" << '\n';
	out << "//  along with this program.  If not, see <https://www.gnu.org/licenses/>." << '\n';
	out << "// =====================================================================================================================" << '\n';

	out << "" << '\n';

	out << "///" << '\n';
	out << "/// \\file fennec/lang/integer.h" << '\n';
	out << "/// \\brief metaprogramming integer type info" << '\n';
	out << "///" << '\n';
	out << "///" << '\n';
	out << "/// \\details This file is automatically generated for the current build environment." << '\n';
	out << "///" << '\n';
	out << "/// Environment for this build: " FENNEC_LONG_COMPILER_NAME << '\n';
	out << "///" << '\n';
	out << "/// \\copyright Copyright © 2025 - 2026 Medusa Slockbower ([GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html))" << '\n';
	out << "///" << '\n';
	out << "///" << '\n';

	out << "" << '\n';

	out << "#ifndef FENNEC_LANG_INTEGER_H" << '\n';
	out << "#define FENNEC_LANG_INTEGER_H" << '\n';

	out << "" << '\n';

	out << "#undef CHAR_MIN"   << '\n';
	out << "#undef CHAR_MAX"   << '\n';
	out << "#undef WCHAR_MIN"  << '\n';
	out << "#undef WCHAR_MAX"  << '\n';
	out << "#undef SCHAR_MIN"  << '\n';
	out << "#undef SCHAR_MAX"  << '\n';
	out << "#undef UCHAR_MIN"  << '\n';
	out << "#undef UCHAR_MAX"  << '\n';
	out << "#undef INT_MIN"    << '\n';
	out << "#undef INT_MAX"    << '\n';
	out << "#undef UINT_MIN"   << '\n';
	out << "#undef UINT_MAX"   << '\n';
	out << "#undef LONG_MIN"   << '\n';
	out << "#undef LONG_MAX"   << '\n';
	out << "#undef ULONG_MIN"  << '\n';
	out << "#undef ULONG_MAX"  << '\n';
	out << "#undef LLONG_MIN"  << '\n';
	out << "#undef LLONG_MAX"  << '\n';
	out << "#undef ULLONG_MIN" << '\n';
	out << "#undef ULLONG_MAX" << '\n';

	out << "" << '\n';

	// TODO: Fix this to generate info without using the c+stdlib for platforms without this available.

	out << R"(/// \brief Is \emph{char} signed?)" << '\n';
	out << "#define CHAR_IS_SIGNED "   << std::boolalpha << std::numeric_limits<char>::is_signed << '\n';

	out << R"(/// \brief Rounding style of type \emph{char}.)" << '\n';
	out << "#define CHAR_ROUNDS "      << std::hex << std::showbase << (int)std::numeric_limits<char>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{char}.)" << '\n';
	out << "#define CHAR_RADIX_DIG "   << std::hex << std::showbase << (int)std::numeric_limits<char>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{char}.)" << '\n';
	out << "#define CHAR_DIG "         << std::hex << std::showbase << (int)std::numeric_limits<char>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{char}.)" << '\n';
	out << "#define CHAR_DECIMAL_DIG " << std::hex << std::showbase << (int)std::numeric_limits<char>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent a \emph{char}.)" << '\n';
	out << "#define CHAR_RADIX "       << std::hex << std::showbase << (int)std::numeric_limits<char>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{char} trap?)" << '\n';
	out << "#define CHAR_TRAPS "       << std::boolalpha << std::numeric_limits<char>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{char}.)" << '\n';
	if (std::numeric_limits<char>::is_signed) {
		out << "#define CHAR_MIN -" << std::format("{:#2x}", 0xFF & std::numeric_limits<char>::min()) << '\n';
	} else {
		out << "#define CHAR_MIN " << std::format("{:#2x}", 0xFF & std::numeric_limits<char>::min()) << '\n';
	}

	out << R"(/// \brief Largest finite value of \emph{char}.)" << '\n';
	out << "#define CHAR_MAX " << std::format("{:#2x}", 0xFF & std::numeric_limits<char>::max()) << '\n';


	out << "" << '\n';


	out << R"(/// \brief Is \emph{wchar_t} signed?)" << '\n';
	out << "#define WCHAR_IS_SIGNED "   << std::boolalpha << std::numeric_limits<wchar_t>::is_signed << '\n';

	out << R"(/// \brief Rounding style of type \emph{wchar_t}.)" << '\n';
	out << "#define WCHAR_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<wchar_t>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{wchar_t}.)" << '\n';
	out << "#define WCHAR_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<wchar_t>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{wchar_t}.)" << '\n';
	out << "#define WCHAR_DIG "         << std::hex << std::showbase << std::numeric_limits<wchar_t>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{wchar_t}.)" << '\n';
	out << "#define WCHAR_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<wchar_t>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent a \emph{wchar_t}.)" << '\n';
	out << "#define WCHAR_RADIX "       << std::hex << std::showbase << std::numeric_limits<wchar_t>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{wchar_t} trap?)" << '\n';
	out << "#define WCHAR_TRAPS "       << std::boolalpha << std::numeric_limits<wchar_t>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{wchar_t}.)" << '\n';
	if (std::numeric_limits<wchar_t>::is_signed) {
		out << "#define WCHAR_MIN -" << std::format("{:#4x}", 0xFFFF & std::numeric_limits<wchar_t>::min()) << '\n';
	} else {
		out << "#define WCHAR_MIN " << std::format("{:#4x}", 0xFFFF & std::numeric_limits<wchar_t>::min()) << '\n';
	}

	out << R"(/// \brief Largest finite value of \emph{wchar_t}.)" << '\n';
	out << "#define WCHAR_MAX " << std::format("{:#04x}", 0xFFFF & std::numeric_limits<wchar_t>::max()) << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{signed char}.)" << '\n';
	out << "#define SCHAR_ROUNDS "      << std::hex << std::showbase << (int)std::numeric_limits<signed char>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{signed char}.)" << '\n';
	out << "#define SCHAR_RADIX_DIG "   << std::hex << std::showbase << (int)std::numeric_limits<signed char>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{signed char}.)" << '\n';
	out << "#define SCHAR_DIG "         << std::hex << std::showbase << (int)std::numeric_limits<signed char>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{signed char}.)" << '\n';
	out << "#define SCHAR_DECIMAL_DIG " << std::hex << std::showbase << (int)std::numeric_limits<signed char>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent a \emph{signed char}.)" << '\n';
	out << "#define SCHAR_RADIX "       << std::hex << std::showbase << (int)std::numeric_limits<signed char>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{signed char} trap?)" << '\n';
	out << "#define SCHAR_TRAPS "       << std::boolalpha << std::numeric_limits<signed char>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{signed char}.)" << '\n';
	out << "#define SCHAR_MIN -" << std::format("{:#2x}", 0xFF & std::numeric_limits<signed char>::min()) << '\n';

	out << R"(/// \brief Largest finite value of \emph{signed char}.)" << '\n';
	out << "#define SCHAR_MAX " << std::format("{:#2x}", 0xFF & std::numeric_limits<signed char>::max()) << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_ROUNDS "      << std::hex << std::showbase << (int)std::numeric_limits<unsigned char>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_RADIX_DIG "   << std::hex << std::showbase << (int)std::numeric_limits<unsigned char>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_DIG "         << std::hex << std::showbase << (int)std::numeric_limits<unsigned char>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_DECIMAL_DIG " << std::hex << std::showbase << (int)std::numeric_limits<unsigned char>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent an \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_RADIX "       << std::hex << std::showbase << (int)std::numeric_limits<unsigned char>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{unsigned char} trap?)" << '\n';
	out << "#define UCHAR_TRAPS "       << std::boolalpha << std::numeric_limits<unsigned char>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_MIN " << std::format("{:#2x}", 0xFF & std::numeric_limits<unsigned char>::min()) << '\n';

	out << R"(/// \brief Largest finite value of \emph{unsigned char}.)" << '\n';
	out << "#define UCHAR_MAX " << std::format("{:#2x}", 0xFF & std::numeric_limits<unsigned char>::max()) << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{short}.)" << '\n';
	out << "#define SHORT_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<short>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{short}.)" << '\n';
	out << "#define SHORT_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<short>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{short}.)" << '\n';
	out << "#define SHORT_DIG "         << std::hex << std::showbase << std::numeric_limits<short>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{short}.)" << '\n';
	out << "#define SHORT_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<short>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent a \emph{short}.)" << '\n';
	out << "#define SHORT_RADIX "       << std::hex << std::showbase << std::numeric_limits<short>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{short} trap?)" << '\n';
	out << "#define SHORT_TRAPS "       << std::boolalpha << std::numeric_limits<short>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{short}.)" << '\n';
	out << "#define SHORT_MIN " << std::hex << std::showbase << std::numeric_limits<short>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{short}.)" << '\n';
	out << "#define SHORT_MAX " << std::hex << std::showbase << std::numeric_limits<short>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<unsigned short>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<unsigned short>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_DIG "         << std::hex << std::showbase << std::numeric_limits<unsigned short>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<unsigned short>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent an \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_RADIX "       << std::hex << std::showbase << std::numeric_limits<unsigned short>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{unsigned short} trap?)" << '\n';
	out << "#define USHORT_TRAPS "       << std::boolalpha << std::numeric_limits<unsigned short>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_MIN " << std::hex << std::showbase << std::numeric_limits<unsigned short>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{unsigned short}.)" << '\n';
	out << "#define USHORT_MAX " << std::hex << std::showbase << std::numeric_limits<unsigned short>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{int}.)" << '\n';
	out << "#define INT_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<int>::round_style  << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{int}.)" << '\n';
	out << "#define INT_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<int>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{int}.)" << '\n';
	out << "#define INT_DIG "         << std::hex << std::showbase << std::numeric_limits<int>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{int}.)" << '\n';
	out << "#define INT_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<int>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent an \emph{int}.)" << '\n';
	out << "#define INT_RADIX "       << std::hex << std::showbase << std::numeric_limits<int>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{int} trap?)" << '\n';
	out << "#define INT_TRAPS "       << std::boolalpha << std::numeric_limits<int>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{int}.)" << '\n';
	out << "#define INT_MIN " << std::hex << std::showbase << std::numeric_limits<int>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{int}.)" << '\n';
	out << "#define INT_MAX " << std::hex << std::showbase << std::numeric_limits<int>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{unsigned int}.)" << '\n';
	out << "#define UINT_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<unsigned int>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{unsigned int}.)" << '\n';
	out << "#define UINT_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<unsigned int>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{unsigned int}.)" << '\n';
	out << "#define UINT_DIG "         << std::hex << std::showbase << std::numeric_limits<unsigned int>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{unsigned int}.)" << '\n';
	out << "#define UINT_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<unsigned int>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent an \emph{unsigned int}.)" << '\n';
	out << "#define UINT_RADIX "       << std::hex << std::showbase << std::numeric_limits<unsigned int>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{unsigned int} trap?)" << '\n';
	out << "#define UINT_TRAPS "       << std::boolalpha << std::numeric_limits<unsigned int>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{unsigned int}.)" << '\n';
	out << "#define UINT_MIN " << std::hex << std::showbase << std::numeric_limits<unsigned int>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{unsigned int}.)" << '\n';
	out << "#define UINT_MAX " << std::hex << std::showbase << std::numeric_limits<unsigned int>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{long int}.)" << '\n';
	out << "#define LONG_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<long int>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{long int}.)" << '\n';
	out << "#define LONG_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<long int>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{long int}.)" << '\n';
	out << "#define LONG_DIG "         << std::hex << std::showbase << std::numeric_limits<long int>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{long int}.)" << '\n';
	out << "#define LONG_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<long int>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent a \emph{long int}.)" << '\n';
	out << "#define LONG_RADIX "       << std::hex << std::showbase << std::numeric_limits<long int>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{long int} trap?)" << '\n';
	out << "#define LONG_TRAPS "       << std::boolalpha << std::numeric_limits<long int>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{long int}.)" << '\n';
	out << "#define LONG_MIN " << std::hex << std::showbase << std::numeric_limits<long int>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{long int}.)" << '\n';
	out << "#define LONG_MAX " << std::hex << std::showbase << std::numeric_limits<long int>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<unsigned long int>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<unsigned long int>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_DIG "         << std::hex << std::showbase << std::numeric_limits<unsigned long int>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<unsigned long int>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent an \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_RADIX "       << std::hex << std::showbase << std::numeric_limits<unsigned long int>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{unsigned long int} trap?)" << '\n';
	out << "#define ULONG_TRAPS "       << std::boolalpha << std::numeric_limits<unsigned long int>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_MIN " << std::hex << std::showbase << std::numeric_limits<unsigned long int>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{unsigned long int}.)" << '\n';
	out << "#define ULONG_MAX " << std::hex << std::showbase << std::numeric_limits<unsigned long int>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{long long}.)" << '\n';
	out << "#define LLONG_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<long long>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{long long}.)" << '\n';
	out << "#define LLONG_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<long long>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{long long}.)" << '\n';
	out << "#define LLONG_DIG "         << std::hex << std::showbase << std::numeric_limits<long long>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{long long}.)" << '\n';
	out << "#define LLONG_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<long long>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent a \emph{long long}.)" << '\n';
	out << "#define LLONG_RADIX "       << std::hex << std::showbase << std::numeric_limits<long long>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{long long} trap?)" << '\n';
	out << "#define LLONG_TRAPS "       << std::boolalpha << std::numeric_limits<long long>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{long long}.)" << '\n';
	out << "#define LLONG_MIN " << std::hex << std::showbase << std::numeric_limits<long long>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{long long}.)" << '\n';
	out << "#define LLONG_MAX " << std::hex << std::showbase << std::numeric_limits<long long>::max() << '\n';


	out << "" << '\n';


	out << R"(/// \brief Rounding style of type \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_ROUNDS "      << std::hex << std::showbase << std::numeric_limits<unsigned long long>::round_style << '\n';

	out << R"(/// \brief Number of radix digits represented by \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_RADIX_DIG "   << std::hex << std::showbase << std::numeric_limits<unsigned long long>::digits << '\n';

	out << R"(/// \brief Number of decimal digits represented by \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_DIG "         << std::hex << std::showbase << std::numeric_limits<unsigned long long>::digits10 << '\n';

	out << R"(/// \brief Number of decimal digits necessary to differentiate all values of type \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_DECIMAL_DIG " << std::hex << std::showbase << std::numeric_limits<unsigned long long>::max_digits10 << '\n';

	out << R"(/// \brief The radix, or integer base, used to represent an \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_RADIX "       << std::hex << std::showbase << std::numeric_limits<unsigned long long>::radix << '\n';

	out << R"(/// \brief Do arithmetics operations with \emph{unsigned long long} trap?)" << '\n';
	out << "#define ULLONG_TRAPS "       << std::boolalpha << std::numeric_limits<unsigned long long>::traps << '\n';


	out << R"(/// \brief Smallest finite value of \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_MIN " << std::hex << std::showbase << std::numeric_limits<unsigned long long>::min() << '\n';

	out << R"(/// \brief Largest finite value of \emph{unsigned long long}.)" << '\n';
	out << "#define ULLONG_MAX " << std::hex << std::showbase << std::numeric_limits<unsigned long long>::max() << '\n';
	

	out << "" << '\n';

	out << "#endif // FENNEC_LANG_INTEGER_H" << '\n';

	out.close();

	return;
}

#endif // FENNEC_METAPROGRAMMING_INTEGER_H
