blob: 20ac7ef717e932ddaf0c72d8b6a28255b8a7310a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//go:build !ci
// +build !ci
package spiceerrors
const DebugAssertionsEnabled = false
// DebugAssert is a no-op in non-CI builds
func DebugAssert(condition func() bool, format string, args ...any) {
// Do nothing on purpose
}
// DebugAssertNotNil is a no-op in non-CI builds
func DebugAssertNotNil(obj any, format string, args ...any) {
// Do nothing on purpose
}
// SetFinalizerForDebugging is a no-op in non-CI builds
func SetFinalizerForDebugging[T any](obj interface{}, finalizer func(obj T)) {
// Do nothing on purpose
}
|