Support interleaved buffers

This commit is contained in:
bloeys
2022-01-26 08:04:50 +04:00
parent e1e617e4e4
commit 1109caef43
8 changed files with 199 additions and 199 deletions

View File

@ -5,14 +5,11 @@ import (
"github.com/bloeys/nmage/logging"
)
func True(check bool, msg string) {
if consts.Debug && !check {
logging.ErrLog.Panicln(msg)
}
}
func T(check bool, msg string) {
func False(check bool, msg string) {
if consts.Debug && check {
logging.ErrLog.Panicln(msg)
if !consts.Debug || check {
return
}
logging.ErrLog.Panicln("Assert failed:", msg)
}