Skip to content

SdlFailed

Checks if an SDL API failed.

Definition

Unit: Neslib.Sdl3.Basics

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

Parameters

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

Returns

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