This site is no longer active and is available for archival purposes only. Registration and login is disabled.

macros vs. function calls


macros vs. function calls

Postby Hand of Fate » Oct 5, 2004 @ 2:20am

I was curious. Macros vs. functions. Using macros would substitute the macro string possibly many times, so this would create much larger code than using a single function call? So would this make macros instead of using a function a disadvantage when it comes to memory usage because the memory usage for the program would be bigger w/macros?
Hand of Fate
Welcome to BANNED
 
Posts: 36
Joined: Sep 30, 2004 @ 9:03am


Postby Kzinti » Oct 5, 2004 @ 2:28am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby fast_rx » Oct 5, 2004 @ 3:09am

I just read an article over at codeproject the other day about inline functions vs. macros. Take a look:

http://www.codeproject.com/cpp/Macros_vs_Inlines.asp
User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby mlepage » Oct 5, 2004 @ 3:37am

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby Kzinti » Oct 5, 2004 @ 3:41am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Hand of Fate » Oct 5, 2004 @ 4:10am

Hand of Fate
Welcome to BANNED
 
Posts: 36
Joined: Sep 30, 2004 @ 9:03am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum