[C] Expanding a function inline?
From: Elliot Marks (emarks_at_email.net)
Date: 11/30/03
- Next message: sparks: "Re: need a little help with getline and a buffer...if someone can help it would be greatly appreciated"
- Previous message: Guy Harrison: "Re: [C] Listing file stats in a directory..."
- Next in thread: Greg Comeau: "Re: [C] Expanding a function inline?"
- Reply: Greg Comeau: "Re: [C] Expanding a function inline?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 15:01:46 GMT
Can someone explain exactly what happens when a function is expanded
inline instead of being called?
#include <stdio.h>
inline void func(void);
int main(void)
{
func();
return 0;
}
inline void func(void)
{
puts("hello, world");
}
How can the code within the function be executed without being called?
Under what circumstances is it advantageous to expand a function inline?
- Next message: sparks: "Re: need a little help with getline and a buffer...if someone can help it would be greatly appreciated"
- Previous message: Guy Harrison: "Re: [C] Listing file stats in a directory..."
- Next in thread: Greg Comeau: "Re: [C] Expanding a function inline?"
- Reply: Greg Comeau: "Re: [C] Expanding a function inline?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|