2
0
mirror of https://github.com/boostorg/assert.git synced 2026-01-20 16:32:08 +00:00
Commit Graph

59 Commits

Author SHA1 Message Date
Peter Dimov
447e0b3a33 Use __builtin_FUNCSIG() under MSVC 19.35+. Fixes #35. 2024-02-03 20:43:55 +02:00
Peter Dimov
cdf8b25e64 Remove unnecessary includes 2023-10-11 18:31:27 +03:00
Peter Dimov
02256c84fd Do not use std::source_location::current under nvcc. Fixes #32. 2023-06-22 18:17:26 +03:00
Peter Dimov
3d6e55bddf Work around __LINE__ not being constant with /ZI (refs #26) 2022-07-21 18:51:54 +03:00
Peter Dimov
601ee4ba7a Use snprintf when available to avoid security warnings (refs #25) 2022-06-13 16:02:53 +03:00
Peter Dimov
a7af7efe51 Add operator==, operator!= to source_location 2022-05-05 03:25:16 +03:00
Peter Dimov
31b2f52083 Do not use __PRETTY_FUNCTION__ on GCC 4.x due to codegen bugs 2022-02-05 08:11:07 +02:00
Peter Dimov
8cb06e5d82 Remove srcloc_strip_top_level, because the contents of __PRETTY_FUNCTION__ aren't constant before GCC 9 and strcmp fails 2022-02-05 00:06:29 +02:00
Peter Dimov
7b14d83548 Hide the definition of srcloc_strip_top_level from non-GCC compilers, specifically Clang 2022-02-04 22:55:52 +02:00
Peter Dimov
d6e87b8049 Update BOOST_CURRENT_LOCATION to be constexpr 2022-02-04 22:48:27 +02:00
Peter Dimov
762a98d227 Use __builtin_FILE et al in BOOST_CURRENT_LOCATION 2022-02-04 02:07:36 +02:00
Peter Dimov
1a80da6298 Enable __PRETTY_FUNCTION__ on Clang, but disable top-level warning 2022-02-03 21:22:45 +02:00
Peter Dimov
844d8c2245 Enable BOOST_CURRENT_LOCATION at top level and in default arguments 2022-02-03 21:19:43 +02:00
Peter Dimov
23e699b9a4 Use std::source_location::current() in BOOST_CURRENT_LOCATION 2022-02-03 20:28:59 +02:00
Peter Dimov
fde226c7f5 Use __cpp_lib_source_location instead of BOOST_NO_CXX20_HDR_SOURCE_LOCATION 2022-02-03 09:31:27 +02:00
Peter Dimov
25f0bab733 Add a source_location constructor from std::source_location 2022-02-03 07:10:59 +02:00
Peter Dimov
ce2133a17f sprintf line() and column() as unsigned long 2022-02-03 07:02:25 +02:00
Peter Dimov
0e99024312 Change file_name() and function_name() for source_location() to return '' instead of '(unknown)' 2022-02-03 06:56:39 +02:00
Peter Dimov
1f98fab0bf Include <cstdio>; qualify std::sprintf 2021-09-19 01:06:02 +03:00
Peter Dimov
b7a43990e6 Add source_location::to_string 2021-09-19 00:45:15 +03:00
Peter Dimov
835f8db241 Cast to char const* to placate clang-tidy (refs #18) 2021-01-02 17:51:56 +02:00
Peter Dimov
e52b379928 Add operator<< for source_location 2020-01-21 01:52:41 +02:00
Peter Dimov
14302eadf6 Rename parameters to placate -Wshadow on g++ 4.x 2019-12-08 21:13:58 +02:00
Peter Dimov
6a4b9c914c Fix g++ 4.x. 2019-11-25 22:25:41 +02:00
Peter Dimov
1afa4b89fd Add boost::source_location 2019-11-25 03:25:57 +02:00
Peter Dimov
2e830ea1fe Use __PRETTY_FUNCTION__ on clang-cl 2018-11-15 18:50:01 +02:00
Peter Dimov
c67fe0a924 Add support for BOOST_DISABLE_CURRENT_FUNCTION 2016-11-01 18:43:47 +02:00
Ion Gaztañaga
abf5a45b09 Added BOOST_ASSERT_IS_VOID macro 2015-07-10 20:49:53 +02:00
Peter Dimov
399cd2a6b0 Refactor; avoid double inclusion of <assert.h> 2014-03-01 01:22:30 +02:00
Peter Dimov
f0e5bd15fb Add BOOST_VERIFY_MSG; change BOOST_ASSERT_MSG(x,m) to assert((x)&&(m)) for consistency with BOOST_ASSERT; add more tests 2014-02-12 02:05:27 +02:00
Peter Dimov
4bc861adc6 Revert "Remove check for obsolete DMC version."
This reverts commit 4dc965909729ad0d7e1c669bbc4383d33ebe97c9.
2014-01-02 16:13:25 +02:00
Peter Dimov
8de3bfebff Revert "Remove obsolete MSVC check from pragma guard"
This reverts commit 1fd5883b345a3c230daaad8ee93af5bc8f3209d5.
2014-01-02 16:13:25 +02:00
Stephen Kelly
6dc5368e22 Remove check for obsolete DMC version.
[SVN r86043]
2014-01-02 16:13:24 +02:00
Stephen Kelly
087f1446ee Remove obsolete MSVC check from pragma guard
git grep -h -B1 "^#\s*pragma once" | grep -v pragma | sort | uniq

is now clean.

[SVN r85952]
2014-01-02 16:13:24 +02:00
Andrey Semashev
c78b8b9157 Optimized BOOST_ASSERT_MSG so that it is more lightweight and doesn't prevent enclosing functions from inlining. Also added branching hints for the checked conditions.
[SVN r84682]
2014-01-02 16:13:23 +02:00
Vicente J. Botet Escriba
5bfb183ec5 Assert: rollback [82428].
[SVN r83431]
2014-01-02 16:13:23 +02:00
Vicente J. Botet Escriba
8105f2e314 Assert: take care of #7028.
[SVN r83428]
2014-01-02 16:13:23 +02:00
John Maddock
50e523b1bc Apply patch from #5607. Refs #5607.
[SVN r72580]
2014-01-02 16:13:22 +02:00
David Deakins
00ec072fc9 Revised the assertion_failed_msg function to use std::exit(-1) instead of std::abort() for Windows CE (since Windows CE does not have an abort() function in the CRT library)
[SVN r68982]
2014-01-02 16:13:22 +02:00
Beman Dawes
50416333b6 Remove BOOST_ENABLE_ASSERT_MSG_HANDLER; use BOOST_ENABLE_ASSERT_HANDLER in its stead
[SVN r68423]
2014-01-02 16:13:21 +02:00
Beman Dawes
fada0c5125 Add BOOST_ASSERT_MSG. Add macros to configure output stream.
[SVN r68414]
2014-01-02 16:13:21 +02:00
Daniel James
dd8edeacda Stop inspect complaining that assert is used in BOOST_ASSERT.
[SVN r66574]
2014-01-02 16:13:20 +02:00
Peter Dimov
5392fc5a1c BOOST_VERIFY added.
[SVN r40728]
2014-01-02 16:13:20 +02:00
Peter Dimov
d43862ab95 Digital Mars support (Pavel Vozenilek)
[SVN r34373]
2014-01-02 16:13:19 +02:00
Beman Dawes
c5baaca438 Add comment explaining use of assert.h
[SVN r27473]
2014-01-02 16:13:18 +02:00
Douglas Gregor
93bb9faf25 Converted to Boost Software License, Version 1.0
[SVN r24055]
2014-01-02 16:13:16 +02:00
Peter Dimov
4ededfcf76 _MSC_VER use clarified.
[SVN r20992]
2014-01-02 16:13:16 +02:00
Peter Dimov
a94d04d1df -Wundef fixes.
[SVN r18788]
2014-01-02 16:13:15 +02:00
Peter Dimov
d1d4e32516 IBM C++ support added.
[SVN r18587]
2014-01-02 16:13:15 +02:00
Peter Dimov
c242f14d91 Intel support.
[SVN r18520]
2014-01-02 16:13:14 +02:00