News for hackers. Stuff that matters.
Re:The Use of assert() in SQLite by bbatha on Saturday April 27, 2019 @12:30AM (#19763788)
The runtime package allows you to grab the current trace, you can just pop the last frame off and print that.
Re:The Use of assert() in SQLite by everdev on Saturday April 27, 2019 @10:04AM (#19765579)
True. The only other challenge is that in production software you rarely want to call panic()
Re:The Use of assert() in SQLite by IanS5 on Saturday April 27, 2019 @12:01PM (#19766161)
As another comment mentioned you can just use build tags to make assert a no-op in release builds