SDL_GetError

» Name

SDL_GetError -- Get SDL error string.

» Synopsis

module "/pliant/SDL/SDL.pli"

function SDL_GetError -> s
 arg CStr s
 external "libSDL.so" "SDL_GetError"

  

» Description

SDL_GetError returns a C, NULL terminated string containing information about the last internal SDL error. In Pliant, this string needs to be cast: (cast s Str) before using. Note: Pliant may actually implicitely cast CStr type to Str, but I'm not sure.

» Return Value

SDL_GetError returns a string containing the last error.

*Parts extracted and reproduced from official SDL documentation copyrighted by Sam Lantinga, also author of SDL.