define-inline ( word def effect -- ) (original) (raw)

define-inline ( word def effect -- )
Factor handbook » The language » Words » Colon definitions

Prev: define-declared ( word def effect -- )
Next: define-syntax ( word quot -- )

Vocabulary
words

Inputs

word a word
def a quotation
effect an effect

Outputs
None

Word description
Defines a word and makes it inline.

Notes
This word must be called from inside with-compilation-unit.

Side effects
Modifies word

Definition

USING: kernel ;

IN: words

: define-inline ( word def effect -- )
[ define-declared ] [ 2drop make-inline ] 3bi ;