function to print StackMoveType

This commit is contained in:
Eric House 2013-02-22 21:34:53 -08:00
parent 168ebeeb5b
commit 2bfda1b56d
2 changed files with 14 additions and 0 deletions

View file

@ -71,6 +71,18 @@ BoardObjectType_2str( BoardObjectType obj )
}
}
const char*
StackMoveType_2str( StackMoveType typ )
{
switch( typ ) {
CASESTR(ASSIGN_TYPE);
CASESTR(MOVE_TYPE);
CASESTR(TRADE_TYPE);
CASESTR(PHONY_TYPE);
default: return FUNC(__func__) " unknown";
}
}
#undef CASESTR
#endif /* ENABLE_LOGGING */

View file

@ -21,10 +21,12 @@
#define _DBGUTIL_H_
#include "board.h"
#include "movestak.h"
const char* XP_Key_2str( XP_Key key );
const char* DrawFocusState_2str( DrawFocusState dfs );
const char* BoardObjectType_2str( BoardObjectType dfs );
const char* StackMoveType_2str( StackMoveType typ );
# ifdef DEBUG
void dbg_logstream( const XWStreamCtxt* stream, const char* func, int line );