BoostC Explaining Dot H Files

From OpenCircuits
Revision as of 18:57, 9 March 2009 by Russ hensel (talk | contribs) (New page: Draft Not Ready This is my russ_hensel explanation of BoostC.h. Others are welcome to contribute. It is a work in progress, and may or may not be correct. I believe that boostc.h...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Draft Not Ready


This is my russ_hensel explanation of BoostC.h. Others are welcome to contribute. It is a work in progress, and may or may not be correct.


I believe that boostc.h get included in almost all BoostC compilitations, think this may be via system.h, but I have not figured this out yet.


//Helper macros

ex:

  1. define clear_bit( reg, bitNumb ) ((reg) &= ~(1 << (bitNumb)))

These are inline functions using #defines with arguments. ( see [[]] ) many C programmes use these expressions directly in there code, but using clear_bit instead of equivalent is bothe easier to read and write. It make the intent of the program cleared, and may make the code easier to port.