Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LVARRAY_ERROR_IF_PRINTF() macro to prinnt fancyer messages on errors #255

Closed
wants to merge 26 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add missing stackTrace()
Xavier Lacoste committed Apr 11, 2022
commit 5734d2c0ab7457f09eae88e10601c9968e1d1e94
9 changes: 5 additions & 4 deletions src/Macros.hpp
Original file line number Diff line number Diff line change
@@ -132,8 +132,8 @@
"***** LOCATION: " LOCATION "\n" \
CUDA_INFORMATION_FMT \
"***** Controlling expression (should be false): " \
STRINGIZE( EXP ) "\n" \
"***** MSG: " MSG_FMT "\n\n", \
"" STRINGIZE( EXP ) "\n" \
"***** MSG: " MSG_FMT "\n\n", \
CUDA_INFORMATION_PARAMS, __VA_ARGS__ ); \
CALL_ERROR_HANDLER(); \
} \
@@ -159,8 +159,8 @@
"***** LOCATION: " LOCATION "\n" \
CUDA_INFORMATION_FMT \
"***** Controlling expression (should be false): " \
STRINGIZE( EXP ) "\n" \
"***** MSG: " STRINGIZE( MSG ) "\n\n", \
"" STRINGIZE( EXP ) "\n" \
"***** MSG: " STRINGIZE( MSG ) "\n\n", \
CUDA_INFORMATION_PARAMS ); \
CALL_ERROR_HANDLER(); \
} \
@@ -177,6 +177,7 @@
__oss << "***** Controlling expression (should be false): "; \
__oss << STRINGIZE( EXP ) << "\n"; \
__oss << "***** MSG: " << MSG << "\n"; \
__oss << LvArray::system::stackTrace( true ); \
std::cout << __oss.str() << std::endl; \
CALL_ERROR_HANDLER(); \
} \