Why use it
The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Performs `move` as part of the utility module.
static bool move(int32_t direction,bool wrap)Performs `move` as part of the utility module.
| Parameter | Type | Meaning |
|---|---|---|
direction | int32_t | Value supplied for direction. Keep referenced or pointed-to data valid for the complete call. |
wrap | bool | Value supplied for wrap. Keep referenced or pointed-to data valid for the complete call. |
Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.
#include "utility.hpp"
// Assume these named values have been initialized with valid data:
// int32_t direction
// bool wrap
auto result = epok::FocusLibrary::move(direction, wrap);The boolean result makes success, availability or state explicit without exceptions.
Check the return value; `false` is part of normal control flow for many PSX resource operations.
Declared in runtime/utility.hpp:168