More zwinconstgen.go work.
This commit is contained in:
parent
732a6db368
commit
06c2f1b051
|
@ -112,6 +112,12 @@ import (
|
||||||
// MinGW will generate handle pointers as pointers to some structure type under some conditions I don't fully understand; here's full overrides
|
// MinGW will generate handle pointers as pointers to some structure type under some conditions I don't fully understand; here's full overrides
|
||||||
var handleOverrides = []string{
|
var handleOverrides = []string{
|
||||||
"HWND",
|
"HWND",
|
||||||
|
"HINSTANCE",
|
||||||
|
"HICON",
|
||||||
|
"HCURSOR",
|
||||||
|
"HBRUSH",
|
||||||
|
// These are all pointers to functions; handle them identically to handles.
|
||||||
|
"WNDPROC",
|
||||||
}
|
}
|
||||||
func winName(t reflect.Type) string {
|
func winName(t reflect.Type) string {
|
||||||
for _, s := range handleOverrides {
|
for _, s := range handleOverrides {
|
||||||
|
|
Loading…
Reference in New Issue