Skip to main content

Name

scpt_register_autoload — register a set of autoloadable items in a namespace

Synopsis

#include "modules/scriptlets/ec_scriptlet.h"

| int **scpt_register_autoload** ( | name_space, |   | |   | consts); |   |

const char * <var class="pdparam">name_space</var>; struct scpt_autoload_item * <var class="pdparam">consts</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

register a set of autoloadable items in a namespace.

Namespace rules as per scpt_register_funcs.

You should register an __index function via scpt_register_funcs and then call scpt_autoload_ns to wire up the items.

Was this page helpful?