Skip to content

Commit

Permalink
DONT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Jul 2, 2024
1 parent fe7460f commit 33e81fa
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmake/Assertion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ macro(_assert_internal_format_message OUT_VAR FIRST_LINE)
endforeach()
endmacro()

# Throws a formatted fatal error message.
#
# fail([<lines>...])
#
# This macro throws a fatal error message formatted from the given lines.
#
# Refer to the `_assert_internal_format_message` macro for more information on
# how the fatal error message is formatted.
macro(fail FIRST_LINE)
_assert_internal_format_message(MESSAGE "${FIRST_LINE}" ${ARGN})
message(FATAL_ERROR "${MESSAGE}")
endmacro()

# Asserts the given condition.
#
# assert(<condition>)
Expand Down

0 comments on commit 33e81fa

Please sign in to comment.