Skip to content

SdlSucceeded

Checks if an SDL API succeeded.

Definition

Unit: Neslib.Sdl3.Basics

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

Parameters

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

Returns

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