# Command: callback

NEST HelpDesk | Command Index | NEST Quick Reference

Name:

    callback - Function to execute before each input prompt.

Examples:

      The following definition will display the stack before each prompt.

      /callback {stack} def

      The following definition will clear the callback.

      /callback {} def

Description:

      callback is a procedure which is called in the executive mode, before
      the input prompt appears.
      It can be used for debugging. For example, during development, the user
      might want to see the contents of the stack after each input.

      callback is only called in the executive mode. It cannot be used to
      trace the execution of a procedure. If this is what you want to do,
      use debug instead.

SeeAlso:

- executive
- debug
- break
- continue

Source:

    /opt/conda/conda-bld/nest_1512418773968/work/nest-2.14.0/lib/sli/sli-init.sli

NEST HelpDesk | Command Index | NEST Quick Reference

© 2004 The NEST Initiative