Skip to main content
gamedev.net
🔒 Locked

C++ '_inline' problem. Please Help!

Started by Antoxa 4 replies 400+ views
Original Post
Antoxa
Antoxa
Why is this code compiled as an independent function not as ''inline'' instructions ? __inline int fixMul (int a, int b) { __asm { xor edx, edx mov eax, ' Target=_Blank>Link
I love games!
Fruny
Fruny
Because the compiler doesn''t have to listen to you when you ask for inlining.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Fruny
Fruny
That''s not a standard element of the language.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.