- Switched back to custom window management, taking another stab

- Refactored lang yet again, `fennec/lang` is now C++ language. `fennec/string` `fennec/filesystem` and `fennec/format` are now independent.
This commit is contained in:
2025-12-04 01:04:36 -05:00
parent d928d86014
commit 6d58105734
137 changed files with 15651 additions and 510 deletions

View File

@@ -20,7 +20,7 @@
#define FENNEC_TEST_CONTAINERS_MAP_H
#include <fennec/containers/map.h>
#include <fennec/lang/strings/string.h>
#include <fennec/string/string.h>
namespace fennec::test {

View File

@@ -19,7 +19,7 @@
#ifndef FENNEC_TEST_CONTAINERS_TUPLE_H
#define FENNEC_TEST_CONTAINERS_TUPLE_H
#include <fennec/containers/tuple.h>
#include <fennec/lang/strings/string.h>
#include <fennec/string/string.h>
namespace fennec
{

View File

@@ -19,8 +19,8 @@
#ifndef FENNEC_TEST_LANG_BITS_H
#define FENNEC_TEST_LANG_BITS_H
#include <fennec/langcpp/assert.h>
#include <fennec/langcpp/bits.h>
#include <fennec/lang/assert.h>
#include <fennec/lang/bits.h>
#include "../../test.h"

View File

@@ -19,7 +19,7 @@
#ifndef FENNEC_TEST_LANG_HASHING_H
#define FENNEC_TEST_LANG_HASHING_H
#include <fennec/langcpp/hashing.h>
#include <fennec/lang/hashing.h>
#include "../../test.h"
namespace fennec::test

View File

@@ -19,7 +19,7 @@
#ifndef FENNEC_TEST_LANG_SEQUENCES_H
#define FENNEC_TEST_LANG_SEQUENCES_H
#include <fennec/langcpp/const_sequences.h>
#include <fennec/lang/const_sequences.h>
namespace fennec::test
{

View File

@@ -19,9 +19,9 @@
#ifndef FENNEC_TEST_LANGPROC_STRINGS_CSTRING_H
#define FENNEC_TEST_LANGPROC_STRINGS_CSTRING_H
#include "../../../test.h"
#include "../../test.h"
#include <fennec/lang/strings/cstring.h>
#include <fennec/string/cstring.h>
namespace fennec::test
{

View File

@@ -31,9 +31,9 @@
#ifndef FENNEC_TEST_LANGPROC_STRINGS_STRING_H
#define FENNEC_TEST_LANGPROC_STRINGS_STRING_H
#include <fennec/lang/strings/string.h>
#include <fennec/string/string.h>
#include "../../../test.h"
#include "../../test.h"
namespace fennec::test
{

View File

@@ -19,15 +19,15 @@
#ifndef FENNEC_TEST_LANGPROC_IO_H
#define FENNEC_TEST_LANGPROC_IO_H
#include "../../test.h"
#include "../test.h"
#include <fennec/lang/filesystem/file.h>
#include <fennec/lang/filesystem/path.h>
#include <fennec/filesystem/file.h>
#include <fennec/filesystem/path.h>
namespace fennec::test
{
inline void fennec_test_langproc_io() {
inline void fennec_test_filesystem() {
fennec_test_section("utilities");

View File

@@ -30,7 +30,9 @@
#ifndef FENNEC_TEST_LANGPROC_FORMAT_H
#define FENNEC_TEST_LANGPROC_FORMAT_H
#include <fennec/lang/strings/format.h>
#include "../test.h"
#include <fennec/format/format.h>
namespace fennec
{
@@ -38,10 +40,13 @@ namespace fennec
namespace test
{
inline void fennec_test_langproc_format() {
inline void fennec_test_format() {
fennec_test_run(fennec::format("{}", "Hello World!"), string("Hello World!"));
fennec_test_run(fennec::format("{0}", "Hello World!"), string("Hello World!"));
fennec_test_run(fennec::format("{}", "Hello World!"), string("Hello World!"));
fennec_test_run(fennec::format("{0}", "Hello World!"), string("Hello World!"));
fennec_test_run(fennec::format("{0} {0}", "Hello"), string("Hello Hello"));
fennec_test_run(fennec::format("{0} {1}", "Hello", "World!"), string("Hello World!"));
fennec_test_run(fennec::format("{1} {0}", "Hello", "World!"), string("World! Hello"));
}
}

View File

@@ -19,9 +19,9 @@
#ifndef FENNEC_TEST_LANG_H
#define FENNEC_TEST_LANG_H
#include "langcpp/test_bits.h"
#include "langcpp/test_conditional_types.h"
#include "langcpp/test_hashing.h"
#include "lang/test_bits.h"
#include "lang/test_conditional_types.h"
#include "lang/test_hashing.h"
namespace fennec::test
{

View File

@@ -1,52 +0,0 @@
// =====================================================================================================================
// fennec, a free and open source game engine
// Copyright © 2025 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_TEST_LANGPROC_H
#define FENNEC_TEST_LANGPROC_H
#include "../test.h"
#include "./lang/test_strings.h"
#include "./lang/test_io.h"
#include "lang/test_format.h"
namespace fennec::test
{
inline void fennec_test_langproc() {
fennec_test_header("strings");
fennec_test_spacer(2);
fennec_test_langproc_strings();
fennec_test_spacer(3);
fennec_test_header("format");
fennec_test_spacer(2);
fennec_test_langproc_format();
fennec_test_spacer(3);
fennec_test_header("io");
fennec_test_spacer(2);
fennec_test_langproc_io();
fennec_test_spacer(3);
// TODO
}
}
#endif // FENNEC_TEST_LANGPROC_H

View File

@@ -31,7 +31,7 @@
#ifndef FENNEC_TEST_RTTI_H
#define FENNEC_TEST_RTTI_H
#include <fennec/lang/strings/string.h>
#include <fennec/string/string.h>
#include <fennec/rtti/type.h>
#include <fennec/rtti/type_data.h>
#include <fennec/rtti/detail/_type_name.h>

View File

@@ -19,14 +19,14 @@
#ifndef FENNEC_TEST_LANGPROC_STRINGS_H
#define FENNEC_TEST_LANGPROC_STRINGS_H
#include "../../test.h"
#include "./strings/test_cstring.h"
#include "./strings/test_string.h"
#include "../test.h"
#include "./string/test_cstring.h"
#include "./string/test_string.h"
namespace fennec::test
{
inline void fennec_test_langproc_strings()
inline void fennec_test_string()
{
fennec_test_subheader("cstring");
fennec_test_spacer(2);