/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later // SPDX-FileCopyrightText: 2020 Marco Trevisan #pragma once #include #include #include #include // for GType #include // for gboolean namespace Gjs { template constexpr inline const char* static_type_name() = delete; template <> constexpr inline const char* static_type_name() { return "bool"; } template <> constexpr inline const char* static_type_name() { return "int8"; } template <> constexpr inline const char* static_type_name() { return "uint8"; } template <> constexpr inline const char* static_type_name() { return "int16"; } template <> constexpr inline const char* static_type_name() { return "uint16"; } template <> constexpr inline const char* static_type_name() { return "int32"; } template <> constexpr inline const char* static_type_name() { return "uint32"; } template <> constexpr inline const char* static_type_name() { return "char32_t"; } template <> constexpr inline const char* static_type_name() { return "int64"; } template <> constexpr inline const char* static_type_name() { return "uint64"; } template <> constexpr inline const char* static_type_name() { return "float"; } template <> constexpr inline const char* static_type_name() { return "double"; } template <> constexpr inline const char* static_type_name() { return "pointer"; } template <> constexpr inline const char* static_type_name() { return "GType"; } template <> constexpr inline const char* static_type_name() { return "boolean"; } template <> constexpr inline const char* static_type_name() { return "GValue"; } template <> inline const char* static_type_name() { return "string"; } } // namespace Gjs