Skip to content
Snippets Groups Projects
Commit 852d7228 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Merge branch 'feature/#60' into 'main'

#60 Improve channel names when unknown

See merge request beyondaka/beyond-protocol!44
parents 6ce02750 dd721463
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ if (WIN32) # TODO(nick) Should do based upon compiler (VS)
#set(CMAKE_GENERATOR_TOOLSET "host=x64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:AVX2 /MP /std:c++17 /wd4996 /Zc:__cplusplus")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /DFTL_DEBUG /Wall")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /O2")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /O2 /Wall")
set(OS_LIBS "")
else()
add_definitions(-DUNIX)
......
......@@ -255,7 +255,7 @@ std::string ftl::protocol::name(Channel c) {
if (i != info.end()) {
return i->second.name;
} else {
return "Unknown";
return "Unknown(" + std::to_string(static_cast<int>(c)) + ")";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment