Skip to content

SdlFailed

Checks if an SDL API failed.

Definition

Unit: Neslib.Sdl3.Basics

function SdlFailed(const ASdlResult: Pointer): Boolean; overload; inline

Parameters

ASdlResult: Pointer : The Pointer result of an SDL API.

Returns

Boolean: True if ASdlResult=nil, False if ASdlResult<>nil.If this method returns True, then TSdlApp.HandleError will be called.