PICmicro & dsPIC >> Source Share for PICmicro & dsPIC

VictorH
Tester - PICC PRO


Reged: Apr 14 2005
Posts: 25
Loc: Venezuela
Handy compile-time assert (reloaded)
      Tue Jul 31 2007 05:22 PM Attachment (256 downloads)

Attached to this post, you can find a helper header for compile time assertions, partially based on John Payson's post, but fine tuned in order to work with some compilers I use (Borland C++, PICC, PICC-18). Hopefully it should work with another compilers.

I hope this header could be a nice solution to the problem that appeared in the 'sizeof' operator -- preprocessor vs. C thread.

Please read the comments in the header itself. Any comments will be welcomed.

[ To the forum moderator: I was not sure whether this is the best forum for posting this header, because it was designed to be used with any ANSI compiler, not just HI-TECH's. Maybe "General Programming"? ]

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Handy compile-time assert (reloaded) VictorH Tue Jul 31 2007 05:22 PM
. * * Re: Handy compile-time assert (reloaded) John Payson   Tue Aug 28 2007 05:34 PM
. * * Re: Handy compile-time assert (reloaded) G.Neiss   Wed Aug 29 2007 01:03 AM

Extra information
0 registered and 8 anonymous users are browsing this forum.

Moderator:  jtemples, Dan Henry, Andrew L, mikerj 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Thread views: 5007

Rate this thread

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5