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:
_________________
タリ·MishaBot
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