Morph
edbe7600f5
common/assert: Use noinline lambda instead of a wrapper template
...
MSVC now supports specifying __declspec on lambda functions
2022-06-30 08:58:36 -04:00
Vitor K
4888a14c12
Make UNIMPLEMENTED_MSG consistent with UNIMPLEMENTED ( #5631 )
...
The current inconsistency can result in a developer unintentionally
creating a crash when using UNIMPLEMENTED_MSG, if they're only
familiar with UNIMPLEMENTED. The two macros shouldn't have such
wildly different behaviors.
2020-12-06 23:36:04 +01:00
Tobias
66846836bc
Port yuzu-emu/yuzu#4577: "common/assert: Make use of C++ attribute syntax" ( #5529 )
...
Co-authored-by: Lioncash <mathew1800@gmail.com>
2020-09-02 17:25:31 +02:00
Weiyi Wang
e1fbf90e16
fix clang-format and lambda capture
2019-10-05 10:54:07 -04:00
Weiyi Wang
00b9cdaf95
unfold UNREACHABLE implementation for dumb compilers
...
We relies on UNREACHABLE's noreturn attribute to eliminate parent's "no return value" warning. However, this was wrapped in a `if(!false)` block, which compilers may not unfold to recognize the noreturn nature.
2019-10-05 10:45:01 -04:00
wwylele
0eab948728
reformat all files with clang-format
2018-06-29 16:56:12 +03:00
wwylele
7c5a76e58b
log: replace all NGLOG with LOG
2018-06-29 14:18:07 +03:00
Daniel Lim Wee Soong
59b8a1dbc2
assert: Undo removal of newline for string with __VA_ARGS__
2018-03-27 10:01:10 +08:00
Daniel Lim Wee Soong
111da6db06
common: Migrate logging macros
...
Follow-up of #3533
Replace logging to use NGLOG instead of LOG
This is significantly larger than the previous ones.
2018-03-25 18:42:50 +08:00
wwylele
e004e9505e
assert: do not crash on unimplemented code in debug build
2018-03-05 14:53:19 +02:00
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
...
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
2016-09-21 11:15:47 +09:00
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
2016-09-18 09:38:01 +09:00
Sam Spilsbury
ef6873980e
assert: Allow UNREACHABLE_MSG to have just one argument
2016-04-24 23:40:14 +08:00
Sam Spilsbury
205e8f9f9e
assert: Add _MSG variations for UNREACHABLE and UNIMPLEMENTED
2016-04-23 11:54:02 +08:00
Emmanuel Gil Peyrot
3a771a13dc
Common: Cleanup profiler includes.
2015-06-28 00:36:53 +01:00
Yuri Kunde Schlesner
c8eae338a8
Common: Use the log system to print assert messages
2015-05-12 02:52:31 -03:00
Yuri Kunde Schlesner
c0eaa662d4
Clean-up includes
2015-05-06 23:45:06 -03:00
Yuri Kunde Schlesner
714d507938
Asserts: Use lambdas to keep assertion code away from the main code path
2015-02-18 02:19:30 -02:00
archshift
ef24e72b26
Asserts: break/crash program, fit to style guide; log.h->assert.h
...
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time)
As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing)
Also removed some GEKKO cruft.
2015-02-10 18:30:31 -08:00