Epok Engine

EPOK RUNTIME

epok::FocusLibrary::add

Method · 1 overload

Method

Adds add as part of the utility module.

Belongs to
epok::FocusLibrary
Header
utility.hpp
Overloads
1

Declaration

static
Declaration
static bool add(ObjectId actor)

Adds add as part of the utility module.

ParameterTypeMeaning
actorObjectIdValue 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.

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// ObjectId actor

auto result = epok::FocusLibrary::add(actor);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in runtime/utility.hpp:167

Related members