memoryCorruptionCheckImpl

Implementation of the memory corruption check.

This part can safely be a function instead of a mixin string to share code.

version(MemoryCorruptionChecks)
@safe
void
memoryCorruptionCheckImpl
(,,,
const string functionName
,
const bool assertOnError
)

Parameters

plugin IRCPlugin

The plugin or service the event handler function takes as parameter, or null if it doesn't take one.

event IRCEvent

The event to check.

uda IRCEventHandler

The IRCEventHandler UDA to check against.

functionName string

The name of the function being checked.

assertOnError bool

Whether to assert(0) if an error is detected. If false, the function will output any errors to the terminal and then do nothing.

See Also