Epok Engine

EPOK RUNTIME

epok::object_destruct

Function · 1 overload

Function

Performs `object destruct` as part of the object model module.

Belongs to
epok
Header
object_model.hpp
Overloads
1

Declaration

Declaration
inline void object_destruct(Object* instance)

Performs `object destruct` as part of the object model module.

ParameterTypeMeaning
instanceObject *Value supplied for instance. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "object_model.hpp"

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

epok::object_destruct(instance);

Why use it

It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.

Trade-offs and warnings

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

Related members