C/C++ Compiler (cl.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Controlling Inline Function Expansion (/Ob<n>)
◄Up► ◄Contents► ◄Index► ◄Back►
─────C/C++ Compiler─────────────────────────────────────────────────────────
Use the /Ob option to control the inline expansion of functions,
where <n> is a digit from 0 through 2. The following table
describes the action of each digit:
Digit Action
0 Disables inline expansion (default with /Od)
1 Only expand functions marked as inline, __inline, or in
a C++ member function defined within a class declaration
(default without /Od)
2 Expand functions marked as inline or __inline and any
other function the compiler chooses (expansion occurs at
compiler discretion)
See also: inline, auto_inline, inline_depth, inline_recursion
-♦-