mobile: Better panic messages

This commit is contained in:
Hajime Hoshi 2019-01-29 11:11:54 +09:00
parent ba47a19b17
commit b24713749b
2 changed files with 3 additions and 3 deletions

View File

@ -26,5 +26,5 @@ func updateTouchesOnAndroid(action int, id int, x, y int) {
} }
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) { func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
panic("not reach") panic("mobile: updateTouchesOnIOSImpl must not be called on Android")
} }

View File

@ -40,7 +40,7 @@ func getIDFromPtr(ptr int64) int {
} }
func updateTouchesOnAndroid(action int, id int, x, y 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) { 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) delete(touches, id)
updateTouches() updateTouches()
default: default:
panic("not reach") panic("not reached")
} }
} }