Epok Engine

EPOK RUNTIME

epok::object_storage_quarantined

Function · 1 overload

Function

Defined after AudioComponent; `false` for every object that owns no retained storage.

Belongs to
epok
Header
object_model.hpp
Overloads
1

Declaration

Declaration
inline bool object_storage_quarantined(Object* instance)

Defined after AudioComponent; `false` for every object that owns no retained storage.

ParameterTypeMeaning
instanceObject *Value supplied for instance. 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 "object_model.hpp"

// Assume these named values have been initialized with valid data:
// Object * instance

auto result = epok::object_storage_quarantined(instance);

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. 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 runtime/object_model.hpp:251

Related members