home *** CD-ROM | disk | FTP | other *** search
-
- ****************************************************************************
- * *
- * T R A C E U T I L I T Y *
- * *
- ****************************************************************************
-
- ⌐ 1991 P. Goodwin
-
- 'tracef' already exists in the RISC-OS library, but it only directly prints
- which isn't terribly useful. My version of 'tracef' outputs to environment
- variables. The application !Trace reads these variables, and displays them,
- along with the current time, and the taskname. Since the output is to
- environment variables, these remain even if the desktop dies.
-
- tracef(message-no, format-string, ...);
-
- The format string is the standard printf format. The normal expected
- parameters should be suppled, for example:
-
- tracef(0, "An index into an array %d", i);
-
- DON'T use '\n' in the string!!!
-
- The message-no corresponds to one of ten strings (0-9) that !Trace shows.