2020-11-24 14:22:45 +01:00
|
|
|
// Copyright 2020 The Ebiten Authors
|
2018-03-04 16:45:03 +01:00
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2022-07-09 08:32:37 +02:00
|
|
|
//go:build !ebitenginedebug && !ebitendebug
|
2018-03-04 16:45:03 +01:00
|
|
|
|
2020-11-24 14:22:45 +01:00
|
|
|
package debug
|
2018-03-04 16:45:03 +01:00
|
|
|
|
2021-08-04 18:15:41 +02:00
|
|
|
const IsDebug = false
|
|
|
|
|
2024-08-07 16:33:54 +02:00
|
|
|
func FrameLogf(format string, args ...any) {
|
2018-03-04 16:45:03 +01:00
|
|
|
}
|
2023-08-25 17:50:45 +02:00
|
|
|
|
2024-08-07 16:33:54 +02:00
|
|
|
func SwitchFrameLogger() FrameLogger {
|
|
|
|
return dummyFrameLogger{}
|
2023-08-25 17:50:45 +02:00
|
|
|
}
|
|
|
|
|
2024-08-07 16:33:54 +02:00
|
|
|
type dummyFrameLogger struct{}
|
2023-08-25 17:50:45 +02:00
|
|
|
|
2024-08-07 16:33:54 +02:00
|
|
|
func (dummyFrameLogger) FrameLogf(format string, args ...any) {
|
2023-08-25 17:50:45 +02:00
|
|
|
}
|
|
|
|
|
2024-08-07 16:33:54 +02:00
|
|
|
func (dummyFrameLogger) Flush() {
|
2023-08-25 17:50:45 +02:00
|
|
|
}
|