Epok Engine

EPOK RUNTIME

epok::is_active

Function · 2 overloads

Function

Reports whether active as part of the epok module.

Belongs to
epok
Header
epok.hpp
Overloads
2

Declaration 1 of 2

Declaration
bool is_active(const ActorData* entity)

Reports whether active as part of the epok module.

ParameterTypeMeaning
entityconst ActorData *Value supplied for entity. 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 "epok.hpp"

// Assume these named values have been initialized with valid data:
// const ActorData * entity

auto result = epok::is_active(entity);

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/epok.hpp:191

Declaration 2 of 2

Declaration
inline bool is_active(Object* value)

Reports whether active as part of the object model module.

ParameterTypeMeaning
valueObject *Value supplied for value. 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 * value

auto result = epok::is_active(value);

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:1254

Related members