Skip to content

Struct jac::ProtoBuilder::Properties

ClassList > jac > ProtoBuilder > Properties

A base class for javascript classes with added properties. More...

  • #include <class.h>

Inherited by the following classes: jac::FileProtoBuilder, jac::ReadableProtoBuilder, jac::WritableProtoBuilder

Public Static Functions

Type Name
void addProperties (ContextRef ctx, Object proto)
Add properties to the object prototype.

Detailed Description

The function addProperties can be overriden to specify custom properties for the class prototype.

Public Static Functions Documentation

function addProperties

Add properties to the object prototype.

static inline void jac::ProtoBuilder::Properties::addProperties (
    ContextRef ctx,
    Object proto
) 

Note:

This function is only called when the class prototype is created

Parameters:

  • ctx context to work in
  • proto the prototype of the class

The documentation for this class was generated from the following file src/jac/machine/class.h