Script Index


/var/lib/sorcery/modules/libspell

This file implements SourceMage's spell file inheritence scheme. In a nutshell, sorcery implements a default for each and every spell file, usually this is "true". There can be an override at the grimoire or section level, in addition to the spell file itself. This means you can write a spell level PRE_BUILD, do some stuff then call default_pre_build, which will run a section level PRE_BUILD if it exists, or run a grimoire level PRE_BUILD if that exists, or run the sorcery supplied default. See bug 10914.

Contributers

Andrew Stitt

Synopsis

Functions for running spell files.


function load_spell_file_functions()

Parameters:

Description

Setup default functions for spell files. Several of the core functions are declared here as false so they exist, but are re-defined when in the proper context. This is merely a safety valve.


function private_default_section_generic()

Parameters:

Description

Run a section level file, or the default grimoire level function.


function private_default_grimoire_generic()

Parameters:

Description

Run a grimoire level file, or the default sorcery level function.


function run_spell_file()

Parameters:

Description

Core entry point for sorcery to run a spell file. Arms real_default_*_file functions then runs the spell file/cmd/function