mirror of
https://github.com/bloeys/nterm.git
synced 2025-12-29 06:28:20 +00:00
Starting using lines to render+rect glyph draw funcs
This commit is contained in:
@ -8,6 +8,8 @@ import (
|
||||
|
||||
func T(check bool, msg string, args ...any) {
|
||||
if consts.Mode_Debug && !check {
|
||||
// Sprintf is done inside the assert because putting it as the argument to 'msg' blocks
|
||||
// the function from getting fully optimized out on a release build (and slower in general)
|
||||
panic("Assert failed: " + fmt.Sprintf(msg, args...))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user