mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
Camera package+ rename asserts->assert
This commit is contained in:
12
assert/assert.go
Executable file
12
assert/assert.go
Executable 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user