Skip to content

HasNotifyCallback

Note

This function only exists in Sonic Origins.

Description

Checks if the game has access to NotifyCallback().

Parameters

None.

Return Value

Returns true if NotifyCallback() exists and is accessible, or false if not.

Syntax

HasNotifyCallback();

Example

if (HasNotifyCallback()) { /* do stuff */ }

Note

This is a macro, which is designed to make programming in RSDK easier. The underlying logic is:

RSDKTable->NotifyCallback != NULL
The underlying logic should NEVER be used as it's less safe than the macro. This note is here for anyone wishing to learn about the internals or hoping to develop a wrapper for another language that doesn't support macros.