Example #1
0
File: sdl.go Project: beoran/fungo
// Raises an SDL error with the given code
func Error(code Errorcode) {
	C.SDL_Error(C.SDL_errorcode(code))
}
Example #2
0
func Error(code ErrorCode) {
	C.SDL_Error(code.c())
}
Example #3
0
func Error(code int) {
	_code := (C.SDL_errorcode)(C.int(code))
	C.SDL_Error(_code)
}