staticinline

Applies to C Applies to C++

Purpose

This option controls whether inline functions are treated as static or extern. By default, XL C/C++ treats inline functions as extern.

Syntax


Syntax Diagram

Example

Using the -qstaticinline option causes function f in the following declaration to be treated as static, even though it is not explicitly declared as such.

inline void f() {/*...*/};

Using the default, -qnostaticinline, gives f external linkage.

Related References

Compiler Command Line Options IBM Copyright 2003