Pop-Up Thingie
Sidebar
War Ensemble BBS
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Newsgroups
comp.lang.c
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
Who's Online
System Info
Sysop:
DaiTengu
Location:
Appleton, WI
Users:
991
Nodes:
10 (
0
/
10
)
Uptime:
120:15:38
Calls:
12,958
Files:
186,574
Messages:
3,265,651