Next: , Previous: , Up: Anatomy of a Emodule   [Contents][Index]


2.3 Recognised Variables

Basically there is only one specially-treated variable.

Variable: dependencies

A const char * array which lists the names of all requisite modules and is terminated with a NULL entry. These are opened and initialised before the actual emodule is initialised.

Like the specially-treated functions above, this variable is also optional. Moreover, the same naming policies apply, and most importantly there is a convenience macro which hides the raw C work you had to do.

macro: REQUIRE name &rest names

Proclaim the requisite emodules of name. Set up and fill the dependencies variable from names as discussed above.