about NETWORK_GetState()

killall -9

Moderator: Developers

Post Reply
User avatar
Dusk
Developer
Posts: 581
Joined: Thu May 24, 2012 9:59 pm
Location: Turku

about NETWORK_GetState()

#1

Post by Dusk » Sun May 27, 2012 2:03 pm

Code: Select all

LONG NETWORK_GetState( void )
{
	return ( g_lNetworkState );
}
Shouldn't this be inline to avoid overhead? I know it's a minor issue but I figured it would be worth raising...

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: about NETWORK_GetState()

#2

Post by Torr Samaho » Sun May 27, 2012 2:12 pm

AFAIK inlining a function which is not implemented in a header but in a cpp file has no effect (and can't have any effect by design unless link time optimization is involved).

Post Reply