## Printer Device Driver

[prev][next][parent][TOC]

### Debugging

Font Test's makefile creates a debug version by default when nmake is entered from an OS/2 command line.

The debug version is created with debug and codeview options so that 32-bit debuggers, such as IPMD, can be used to source-level debug Font Test.

In general, Font Test asserts every return code from every Win, GPI, and Dev call. If the return code indicates some type of failure, an OS/2 message box is displayed. The message box lists the failing API, the return code, the result of WinGetLastError(), and an interpretation of the failure if possible.

The error assertion routine is called PMAssert(); and is located in the module FT32HELP.C. This routine can be modified to include other debug information.

To create a "retail" or non-debug version of Font Test enter nmake ndebug=1 from an OS/2 command line.

Note: The error code displayed from WinGetLastError() corresponds to named errors that are defined in PMERR.H from the OS/2 Toolkit and documented in the OS/2 PM Programming Reference Volume 3.