Skip to content

SdlSucceeded

Checks if an SDL API succeeded.

Definition

Unit: Neslib.Sdl3.Basics

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

Parameters

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

Returns

Boolean: True of ASdlResult is assigned, False if it is nil.

Remarks

If this method returns False, then TSdlApp.HandleError will be called.