10 Commits

Author SHA1 Message Date
pancake
58a5f2d274
Implement log.source and log.origin ##shell
* Update tests
2022-09-14 18:51:02 +02:00
pancake
e7816e4d67 Improve RLog API and usage, document R2_LOG_ vars in r2 -hh ##core 2022-04-19 11:14:57 +02:00
pancake
81c9013454 Expose R_WEAK attribute and minor cleanups
* Fix memleak in cbin.relocs
2022-04-19 11:14:57 +02:00
pancake
5603366182
Be consistent and make all env vars start with R2_ (#16841) 2020-05-18 13:21:50 +02:00
pancake
28fc7d6b53 Show backtrace when assert happens 2019-09-01 17:44:33 +02:00
Riccardo Schirone
3d5fac61f6 assert: use R2_ASSERT_STDOUT instead of ASSERT_STDOUT
In this way Travis script (travis-extract-var.sh) will automatically
pass the var to the docker container. Also, it makes the macro name more
consistent with all the others.
2018-10-29 16:01:26 +01:00
Riccardo Schirone
6080edf13b
Fix r_log when used for r_assert (#11971)
- Split r_log in r_vlog/r_log and make r_assert_log use r_vlog because it
needs to provide a va_list.
- Rename _r_internal_logging to r_log because that's a R_API function
and it needs a good name
- Make R2_CHECKS_LEVEL dependent on 'buildtype' option
- Make R_LOGLVL_WARN the default log level when in debug mode (default)
- introduce ASSERT_STDOUT macro to print assert failures to stdout
- use ASSERT_STDOUT in the Travis env with asan
- use list of callbacks in RLog instead of just one.
2018-10-29 11:48:12 +01:00
Aaron
a6725edb1f Fix #10324 - Implement RLog API for leveled logging ##core (#11786) 2018-10-27 05:29:22 +02:00
pancake
2168e4a606 Check R_DEBUG_ASSERT > 1 env var in r_assert_log() 2018-10-07 01:12:05 +02:00
Riccardo Schirone
ab4dbd509f r_assert: create functions to handle preconditions (#11286) 2018-09-16 23:24:57 +02:00