3 ms·
You could, but then when you get an error, you'll see the file and line number of the assert function rather than the code that actually produced the error.
by everdev 7y ago
You could, but then when you get an error, you'll see the file and line number of the assert function rather than the code that actually produced the error.
- bbatha 7y agoThe runtime package allows you to grab the current trace, you can just pop the last frame off and print that.