mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Support interleaved buffers
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user