Epok Engine

PSYQO SDK

psyqo::operator--

Function · 2 overloads

Function

postfix decrement operator

Belongs to
psyqo
Header
advancedpad.hh
Overloads
2

Declaration 1 of 2

Declaration
inline psyqo::AdvancedPad::Pad operator--(psyqo::AdvancedPad::Pad& pad, int)

postfix decrement operator

ParameterTypeMeaning
padpsyqo::AdvancedPad::Pad &Value supplied for pad. Keep referenced or pointed-to data valid for the complete call.
arg2intValue supplied for arg2. Keep referenced or pointed-to data valid for the complete call.

Returns: psyqo::AdvancedPad::Pad. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "psyqo/advancedpad.hh"

// Assume these named values have been initialized with valid data:
// psyqo::AdvancedPad::Pad & pad
// int arg2

auto result = psyqo::operator--(pad, arg2);

Why use it

It provides direct, allocation-conscious access to the advancedpad module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/advancedpad.hh:272

Declaration 2 of 2

Declaration
inline psyqo::AdvancedPad::Pad& operator--(psyqo::AdvancedPad::Pad& pad)

prefix decrement operator

ParameterTypeMeaning
padpsyqo::AdvancedPad::Pad &Value supplied for pad. Keep referenced or pointed-to data valid for the complete call.

Returns: psyqo::AdvancedPad::Pad &. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "psyqo/advancedpad.hh"

// Assume these named values have been initialized with valid data:
// psyqo::AdvancedPad::Pad & pad

auto result = psyqo::operator--(pad);

Why use it

It provides direct, allocation-conscious access to the advancedpad module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in https://github.com/pcsx-redux/nugget/blob/6186b131aacc5853a9161fb076ed34ffe504552d/psyqo/advancedpad.hh:267

Related members