Quote:
Originally Posted by slavik262
Just out of curiosity, why are you making them all inline?
|
the clones are inline to only (hopefully) incur 1 function call, because they are small, and call the main function
normal:
Auto()
> var("x",5)
> > AddDebugVariable("x",5)
> > > AddDebugVariable("x","5")
> > > > Add("dbg","x: 5")
Inline:
Auto()
var("x",5)
AddDebugVariable("x",5)
AddDebugVariable("x","5")
> Add("dbg","x: 5")
Normal makes 4 function calls, Inline only 1
EDIT: I accidentally put inline on
void Add(const char* name, const char* value); instead of
void AddDebugVariable(const char* name, const char* value);