in reply to Re: I usually debug via...
in thread I usually debug via...
#define FOO_UNIT_TEST
(various functions or objects... )
#ifdef FOO_UNIT_TEST
int main (int argc, char ** argv) {
(code that tests the above )
#endif
--then I'd just compile the one file when testing, or comment out the first line when integrating.
Is there a similar mechanism for Perl?
|
|---|