Camera package+ rename asserts->assert

This commit is contained in:
bloeys
2022-07-23 22:51:57 +04:00
parent b85056dd31
commit 52b77e017e
9 changed files with 195 additions and 76 deletions

12
assert/assert.go Executable file
View File

@ -0,0 +1,12 @@
package assert
import (
"github.com/bloeys/nmage/consts"
"github.com/bloeys/nmage/logging"
)
func T(check bool, msg string) {
if consts.Debug && !check {
logging.ErrLog.Panicln("Assert failed:", msg)
}
}