2018-04-03 00:21:26 +02:00
|
|
|
[< back to index](../index.md)
|
|
|
|
|
2018-02-01 22:39:38 +01:00
|
|
|
# Macros and inlining
|
2018-01-04 01:15:04 +01:00
|
|
|
|
2018-02-01 22:39:38 +01:00
|
|
|
## Macros
|
2018-01-04 01:15:04 +01:00
|
|
|
|
2018-02-01 22:39:38 +01:00
|
|
|
`macro` keyword
|
2018-01-04 01:15:04 +01:00
|
|
|
|
|
|
|
## Automatic inlining
|
|
|
|
|
2019-06-12 00:20:24 +02:00
|
|
|
You can control inlining behavior in several ways:
|
|
|
|
|
|
|
|
* functions declared with the `inline` keyword will be inlined if possible
|
|
|
|
|
|
|
|
* functions declared with the `noinline` keyword will never be inlined
|
|
|
|
|
|
|
|
* the remaining functions may be inlined only if the `-finline` command-line option is enabled
|
|
|
|
and the compiler decides the function is worth doing
|
2018-02-01 22:39:38 +01:00
|
|
|
|