Skip to content

Commit

Permalink
Add note about include files.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminion committed Jul 15, 2017
1 parent 3584212 commit 9374e81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lll_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,12 @@ single quoted string: ``(include 'filename.lll)``.

``include`` can appear anywhere an expression would be valid. For example, this
is fine and returns whatever the code in *foo.lll* evaluated to: ``(return
(include "foo.lll"))``.
(include "foo.lll"))``. Note that the contents of the included file must
evaluate to a single expression even if it is being included within a ``seq``
expression.

More often, ``include`` might be used to insert external libraries of common
macro definitions shared between projects.
``include`` may be used to insert external libraries of common macro
definitions shared between projects.

Filepaths may be absolute or relative to the current directory. A filename on
its own is looked for in the current directory.
Expand Down

0 comments on commit 9374e81

Please sign in to comment.