Why use it
The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Adds add as part of the utility module.
static bool add(ObjectId actor)Adds add as part of the utility module.
| Parameter | Type | Meaning |
|---|---|---|
actor | ObjectId | Value supplied for actor. 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:
// ObjectId actor
auto result = epok::FocusLibrary::add(actor);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:167