Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This macro outputs an error message.
#define ERRORMSG(
cond,
printf_exp
)
- cond
Boolean expression used to determine if the message would be output. - printf_exp
Expression to be printed using printf format style.
None.
This macro is very similar to RETAILMSG, except that the ERRORMSG macro prefixes the message with "ERROR", and gives the file name and line number of the error.
ERRORMSG(dwCurrentNumberOfItems >= dwMaxNumberOfItems,
(TEXT("Invalid item count! Found %u, expected less than %u\r\n"),
dwCurrentNumberOfItems, dwMaxNumberOfItems));
Output:
ERROR: C:\WINCE500\Programs\MyProgram\.\main.c line 44:
Invalid item count! Found 13343, expected less than 68
OS Versions: Windows CE OS 2.10 and later
Header: Dbgapi.h
Link Library: none
DEBUGMSG | RETAILMSG | NKDbgPrintfW
Send Feedback on this topic to the authors