Function inlining test.

This commit is contained in:
Bartosz Taudul 2019-01-20 16:55:09 +01:00
parent 0ce3dfaba7
commit 420a50feea

View File

@ -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()