mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 15:04:28 +01:00
mobile: Better panic messages
This commit is contained in:
parent
ba47a19b17
commit
b24713749b
@ -26,5 +26,5 @@ func updateTouchesOnAndroid(action int, id int, x, y int) {
|
||||
}
|
||||
|
||||
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||
panic("not reach")
|
||||
panic("mobile: updateTouchesOnIOSImpl must not be called on Android")
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ func getIDFromPtr(ptr int64) int {
|
||||
}
|
||||
|
||||
func updateTouchesOnAndroid(action int, id int, x, y int) {
|
||||
panic("not reach")
|
||||
panic("mobile: updateTouchesOnAndroid must not be called on iOS")
|
||||
}
|
||||
|
||||
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||
@ -55,6 +55,6 @@ func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||
delete(touches, id)
|
||||
updateTouches()
|
||||
default:
|
||||
panic("not reach")
|
||||
panic("not reached")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user