Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
golang / usr / local / go / src / runtime / testdata / testwinlibthrow / main.go
Size: Mime:
package main

import (
	"os"
	"syscall"
)

func main() {
	dll := syscall.MustLoadDLL("veh.dll")
	RaiseNoExcept := dll.MustFindProc("RaiseNoExcept")
	ThreadRaiseNoExcept := dll.MustFindProc("ThreadRaiseNoExcept")

	thread := len(os.Args) > 1 && os.Args[1] == "thread"
	if !thread {
		RaiseNoExcept.Call()
	} else {
		ThreadRaiseNoExcept.Call()
	}
}