• what inline means?

    From Thiago Adams@thiago.adams@gmail.com to comp.lang.c on Fri Nov 22 15:52:36 2024
    From Newsgroup: comp.lang.c



    My current thoughts.
    - if the function is not defined (no implementation) then inline will
    define the function.

    inline int f(){ return 1; }
    inline int f(){ return 1; } //error already defined

    - if the function is already defined somewhere then it is just a
    "view" of the code. (This view can be used to "inline code")


    extern int f();
    inline int f(){ return 1; } //ok


    - if a inline function is declared and not define at current file then
    it is a warning
    inline int f();//warning



    --- Synchronet 3.20a-Linux NewsLink 1.114