Quantcast
Channel: Cemetech
Viewing all articles
Browse latest Browse all 75338

Casio Prizm/FX Development & Programming :: RE: Robot Loves Prizm

$
0
0
Author: Tari
Posted: 26 Oct 2012 07:53:43 pm (GMT -5)

Just a note on the phrases: your preprocessor definition for the number of phrases works, but is prone to error, because it's easy to update the phrases array and forget to update the number of them.

This will let the compiler worry about it:

Code:
#define MESSAGES (sizeof(messages) / sizeof(*messages))

_________________


タリ·MishaBot


Viewing all articles
Browse latest Browse all 75338

Trending Articles