About 50 results
Open links in new tab
  1. What is the use of the `inline` keyword in C? - Stack Overflow

    Jun 29, 2015 · Is "inline" without "static" or "extern" ever useful in C99? shows the actual syntax necessary in the .h and the extern inline declaration in exactly one .c to instantiate a non-inline …

  2. When to use the inline function and when not to use it?

    I know that inline is a hint or request to the compiler and is used to avoid function call overheads. So, on what basis one can determine whether a function is a candidate for inlining or not? In w...

  3. Why declare a C function as static inline? - Stack Overflow

    64 inline does not mean you can use the function “inline” (it is normal to use functions inside other functions; you do not need inline for that); it encourages the compiler to build the function into the …

  4. c - What's the difference between "static" and "static inline" function ...

    Jul 18, 2018 · Is "inline" without "static" or "extern" ever useful in C99? shows the actual syntax necessary in the .h and the extern inline declaration in exactly one .c to make a working C program …

  5. When should I write the keyword 'inline' for a function/method?

    Nov 19, 2009 · Specific answers to your questions: When should I write the keyword 'inline' for a function/method in C++? Only when you want the function to be defined in a header. More exactly …

  6. inline - __inline functions vs normal functions in C - Stack Overflow

    Making a function an inline function suggests that calls to the function be as fast as possible. (Due to stack and stuff overhead) Is always using inline function is better or not? If not then WHY? What are …

  7. c - (How) Can I inline a particular function call? - Stack Overflow

    Sep 21, 2015 · the traditional way to force inline a function in C was to not use a function at all, but to use a function like macro. This method will always inline the function, but there are some problems …

  8. In C, should inline be used in definition or declaration

    Jun 15, 2020 · So an inline function definition will also be the externally linked definition of the function if it has an external declaration at file scope. In that case, the inline may still act as a hint to the …

  9. c - What happens with an extern inline function? - Stack Overflow

    Your compilation unit of the .c file sees an extern declaration (without inline) and an inline definition. Thus it emits the symbol for the function in the object file. All other compilation units only see an …

  10. Differences of the inline-keyword in C and C++ - Stack Overflow

    Jun 16, 2021 · While the inline -keyword has the same goal in C and C++: to provide the definition of a function at compile time in multiple translation units, these languages use different methods to cope …