xref: /haiku/docs/develop/servers/app_server/DebugTools.rst (revision a5061ecec55353a5f394759473f1fd6df04890da)
1*a5061eceSAdrien DestuguesDebug Utility functions
2*a5061eceSAdrien Destugues#######################
3*a5061eceSAdrien Destugues
4*a5061eceSAdrien DestuguesThese functions are used to make print-based debugging easier.
5*a5061eceSAdrien Destugues
6*a5061eceSAdrien Destugues- BString TranslateStatusToBString(status_t value)
7*a5061eceSAdrien Destugues- BString TranslateColorSpaceToBString(color_space value)
8*a5061eceSAdrien Destugues- BString TranslateMessageCodeToBString(int32 value)
9*a5061eceSAdrien Destugues- BString TranslateStatusToBString(status_t value)
10*a5061eceSAdrien Destugues- BString TranslateColorSpaceToBString(color_space value)
11*a5061eceSAdrien Destugues- BString TranslateMessageCodeToBString(int32 value)
12*a5061eceSAdrien Destugues- const char \* TranslateStatusToString(status_t value)
13*a5061eceSAdrien Destugues- const char \* TranslateColorSpaceToString(color_space value)
14*a5061eceSAdrien Destugues- const char \* TranslateMessageCodeToString(int32 value)
15*a5061eceSAdrien Destugues
16*a5061eceSAdrien DestuguesAll of these functions are essentially big switch() statements which
17*a5061eceSAdrien Destuguesassign an appropriate string for the passed parameter and return the
18*a5061eceSAdrien Destuguesassigned string. This way the string can be printed or otherwise
19*a5061eceSAdrien Destugueseasily used.
20*a5061eceSAdrien Destugues
21