11#define RYTHE_ENTRY
2- #define RYTHE_LOG_DEBUG
2+ #define RSL_DEFAULT_LOG_SEVERITY debug
33
44#if defined(NDEBUG)
55#define RYTHE_KEEP_CONSOLE
66#endif
77
88#include < core/core.hpp>
9+ #include < rsl/logging>
910#include < rsl/type_traits>
1011
1112template <typename T>
@@ -16,17 +17,26 @@ rsl::result<void> RYTHE_CCONV init_program(rythe::core::program& program)
1617 using namespace rythe ;
1718 program.add_engine_instance ();
1819
19- [[maybe_unused]] constexpr rsl::constexpr_string A = " Something" ;
20- [[maybe_unused]] constexpr rsl::constexpr_string B = " Other" ;
21- [[maybe_unused]] constexpr rsl::constexpr_string result = A + B;
20+ constexpr static rsl::constexpr_string A = " Something" ;
21+ constexpr static rsl::constexpr_string B = " Other" ;
22+ constexpr static rsl::constexpr_string result = A + B;
2223
23- [[maybe_unused]] constexpr rsl::constexpr_string hello_world = " hello world " ;
24- [[maybe_unused]] constexpr rsl::constexpr_string shorten = hello_world. filter_if ([]( char y) { return ' ' != y; } );
25- [[maybe_unused]] constexpr rsl::constexpr_string optimal = shorten. refit <shorten. size () + 1 >( );
24+ rsl::log::debug (A) ;
25+ rsl::log::debug (B );
26+ rsl::log::debug (result );
2627
27- constexpr rsl::constexpr_string typeName = rsl::type_name<std::string>();
28- [[maybe_unused]] constexpr auto shrunk = typeName.refit <typeName.size () + 1 >();
29- constexpr rsl::id_type typeHash = rsl::type_id<std::string>();
28+ constexpr static rsl::constexpr_string hello_world = " hello world" ;
29+ constexpr static rsl::constexpr_string shorten = hello_world.filter_if ([&](const rsl::size_type i) { return ' ' != hello_world[i]; });
30+ constexpr static rsl::constexpr_string optimal = shorten.refit <shorten.size () + 1 >();
31+
32+ rsl::log::debug (hello_world);
33+ rsl::log::debug (shorten);
34+ rsl::log::debug (optimal);
35+ rsl::log::debug (" {} {}" , shorten.capacity (), optimal.capacity ());
36+
37+ constexpr rsl::constexpr_string typeName = rsl::type_name<rsl::dynamic_string>();
38+ constexpr auto shrunk = typeName.refit <typeName.size () + 1 >();
39+ constexpr rsl::id_type typeHash = rsl::type_id<rsl::dynamic_string>();
3040
3141 rsl::log::debug (
3242 " type info: {} : {}, {}, {}, {}" ,
0 commit comments