Coranac

This is just an update to synchronize what I have with devkitPro's distribution of grit. This includes updates to the makefile, and turning back the way the size-constant was defined back to a #define. Apparently, consts aren't constanty enough for C compilers for use in array declarations. Shame, I would have liked to get rid of macros as much as possible :(.


In any case, the two versions should be identical again (with one small exception, namely that my version emits a .size directive for assembly, but that's a minor something that should not affect anyone.)


2 Comments »

  1. If you want to get rid of the #define, you could probably use an unnamed enum instead. Enum's are compile time constants.

    Comment by Peter — 2010-03-27 @ 16:27
  2. Yeah, that is also an option. But that seems a little awkward. enums are for enumerations, not hackish constants.

    Comment by cearn — 2010-03-28 @ 19:34
RSS feed for comments on this post. TrackBack URL

Leave a comment




XHTML: You can use these tags:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Others: [code lang='*'], [wiki]




Powered by WordPress