Skip to content

Clarify documentation of @compile :inline flag #7909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/elixir/lib/module.ex
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ defmodule Module do
of the corresponding setting in `Code.compiler_options/1`

* `@compile {:inline, some_fun: 2, other_fun: 3}` - inlines the given
name/arity pairs
name/arity pairs. Inlining is applied locally, calls from another
module are not affected by this option

* `@compile {:autoload, false}` - disables automatic loading of
modules after compilation. Instead, the module will be loaded after
Expand Down