Inline Function - Language Support

Language Support

C++, C99, and GNU C each have support for inline functions. Different compilers vary in how complex a function they can manage to inline. Mainstream C++ compilers like Microsoft Visual C++ and GCC support an option that lets the compilers automatically inline any suitable function, even those not marked as inline functions.

An inline function can be written in C99 or C++ like this:

inline int max(int a, int b) { return (a > b) ? a : b; }

Then, a statement such as the following:

a = max(x, y);

may be transformed into a more direct computation:

a = (x > y) ? x : y;

Read more about this topic:  Inline Function

Famous quotes containing the words language and/or support:

    It is a mass language only in the same sense that its baseball slang is born of baseball players. That is, it is a language which is being molded by writers to do delicate things and yet be within the grasp of superficially educated people. It is not a natural growth, much as its proletarian writers would like to think so. But compared with it at its best, English has reached the Alexandrian stage of formalism and decay.
    Raymond Chandler (1888–1959)

    In erotic love, two people who were separate become one. In motherly love, two people who were one become separate. The mother must not only tolerate, she must wish and support the child’s separation.
    Erich Fromm (20th century)