internal/glfw: make panic messages consistent

This commit is contained in:
Hajime Hoshi 2022-05-21 13:19:11 +09:00
parent 9a1eb0b124
commit 6fa39d5e73

View File

@ -1511,7 +1511,7 @@ func _PtInRect(lprc *_RECT, pt _POINT) bool {
// Adjust the alignment for ARM. // Adjust the alignment for ARM.
r, _, _ = procPtInRect.Call(uintptr(unsafe.Pointer(lprc)), 0, uintptr(pt.x), uintptr(pt.y)) r, _, _ = procPtInRect.Call(uintptr(unsafe.Pointer(lprc)), 0, uintptr(pt.x), uintptr(pt.y))
default: default:
panic(fmt.Sprintf("GOARCH=%s is not supported", runtime.GOARCH)) panic(fmt.Sprintf("glfwwin: GOARCH=%s is not supported", runtime.GOARCH))
} }
} }
return int32(r) != 0 return int32(r) != 0
@ -1582,7 +1582,7 @@ func _RtlVerifyVersionInfo(versionInfo *_OSVERSIONINFOEXW, typeMask uint32, cond
// Adjust the alignment for ARM. // Adjust the alignment for ARM.
r, _, _ = procRtlVerifyVersionInfo.Call(uintptr(unsafe.Pointer(versionInfo)), uintptr(typeMask), 0, uintptr(conditionMask), uintptr(conditionMask>>32)) r, _, _ = procRtlVerifyVersionInfo.Call(uintptr(unsafe.Pointer(versionInfo)), uintptr(typeMask), 0, uintptr(conditionMask), uintptr(conditionMask>>32))
default: default:
panic(fmt.Sprintf("GOARCH=%s is not supported", runtime.GOARCH)) panic(fmt.Sprintf("glfwwin: GOARCH=%s is not supported", runtime.GOARCH))
} }
} }
return int32(r) return int32(r)