Пример #1
0
func GetError() (ret string) {
	ret = C.GoString(C.SDL_GetError())
	C.SDL_ClearError()
	return
}
Пример #2
0
// Clear the current SDL error
func ClearError() {
	GlobalMutex.Lock()
	C.SDL_ClearError()
	GlobalMutex.Unlock()
}
Пример #3
0
// ClearError (https://wiki.libsdl.org/SDL_ClearError)
func ClearError() {
	C.SDL_ClearError()
}