Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.10)
option(TINY_UI_SAMPLES "The build will create the samples." ON)

PROJECT(tiny_ui)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD 23 )
SET( TUI_VERSION_MAJOR 0 )
SET( TUI_VERSION_MINOR 0 )
SET( TUI_VERSION_PATCH 2 )
Expand Down
8 changes: 6 additions & 2 deletions src/tinyui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SOFTWARE.
#include "backends/sdl2_iodevice.h"

#include <iostream>
#include <utility>

namespace tinyui {

Expand Down Expand Up @@ -56,7 +57,11 @@ static void logVersion(const Context &ctx) {

void log_message(LogSeverity severity, const char *message) {
assert(message != nullptr);
std::cout << SeverityToken[static_cast<size_t>(severity)] << " " << message <<"\n.";
if (severity == LogSeverity::Message) {
std::cout << message << "\n";
} else {
std::cout << SeverityToken[std::to_underlying(severity)] << " " << message << "\n";
}
}

Context *gCtx = nullptr;
Expand All @@ -67,7 +72,6 @@ Context *Context::create(const char *title, const Style &style) {
ctx->mAppTitle = title;
ctx->mWindowsTitle = title;
ctx->mStyle = style;
ctx->mVersion = Version{0, 0, 2};

logVersion(*ctx);

Expand Down
Loading