mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Function inlining test.
This commit is contained in:
parent
0ce3dfaba7
commit
420a50feea
@ -145,11 +145,18 @@ void MessageTest()
|
||||
}
|
||||
}
|
||||
|
||||
static int Fibonacci( int n );
|
||||
|
||||
static inline int FibonacciInline( int n )
|
||||
{
|
||||
return Fibonacci( n );
|
||||
}
|
||||
|
||||
static int Fibonacci( int n )
|
||||
{
|
||||
ZoneScoped;
|
||||
if( n < 2 ) return n;
|
||||
return Fibonacci( n-1 ) + Fibonacci( n-2 );
|
||||
return FibonacciInline( n-1 ) + FibonacciInline( n-2 );
|
||||
}
|
||||
|
||||
void DepthTest()
|
||||
|
Loading…
Reference in New Issue
Block a user