Add modules support

This commit is contained in:
Toyosatomimi no Miko
2025-03-25 18:49:18 -04:00
parent 5bf8ee819b
commit 69928b374e
40 changed files with 985 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* @file AutoReset.cppm
* @brief Module file for the AutoReset class of the Util module
*/
module;
#include <ftxui/util/autoreset.hpp>
export module ftxui.util.AutoReset;
/**
* @namespace ftxui
* @brief The FTXUI ftxui:: namespace
*/
export namespace ftxui {
using ftxui::AutoReset;
}

View File

@@ -0,0 +1,22 @@
/**
* @file Ref.cppm
* @brief Module file for the Ref classes of the Util module
*/
module;
#include <ftxui/util/ref.hpp>
export module ftxui.util.Ref;
/**
* @namespace ftxui
* @brief The FTXUI ftxui:: namespace
*/
export namespace ftxui {
using ftxui::ConstRef;
using ftxui::Ref;
using ftxui::StringRef;
using ftxui::ConstStringRef;
using ftxui::ConstStringListRef;
}