RSSAmplifier

The Pragmatic Addict · Apr 11, 2024

Useful C define functions

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Over the past 20 years I’ve writing quite a bit of cross platform C code using gcc and mingw. These are some quick functions I’ve reached for which save a bunch of mundane coding. The key advantage to use macro definitions rather than functions is performance speed. If these were a function, all the overhead (poiters, stacks etc) would be needed each time the function were called. In…

Read on pragmaticaddict.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.