Skip to content

Commit

Permalink
-added asserts.h header
Browse files Browse the repository at this point in the history
-updated the version to 2.2.0
  • Loading branch information
kamchatka-volcano committed Aug 26, 2022
1 parent a811d97 commit 45b0a39
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.18)

project(sfun VERSION 2.1.1 DESCRIPTION "stuff from unnamed namespaces - a c++17 helper library")
project(sfun VERSION 2.2.0 DESCRIPTION "stuff from unnamed namespaces - a c++17 helper library")

if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(SFUN_SUBPROJECT OFF)
Expand Down
12 changes: 12 additions & 0 deletions include/sfun/asserts.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once
#include <exception>

namespace sfun::assert{

[[noreturn]]
inline void ensureNotReachable() noexcept
{
std::terminate();
}

}

0 comments on commit 45b0a39

Please sign in to comment.