mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
Add Init,Update,Destroy to Comp+HasComp,DestroyComp funcs
This commit is contained in:
@ -1,12 +1,15 @@
|
||||
package assert
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/bloeys/nmage/consts"
|
||||
"github.com/bloeys/nmage/logging"
|
||||
)
|
||||
|
||||
func T(check bool, msg string) {
|
||||
func T(check bool, msg string, args ...any) {
|
||||
|
||||
if consts.Debug && !check {
|
||||
logging.ErrLog.Panicln("Assert failed:", msg)
|
||||
logging.ErrLog.Panicln("Assert failed:", fmt.Sprintf(msg, args...))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user