mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
function to print StackMoveType
This commit is contained in:
parent
168ebeeb5b
commit
2bfda1b56d
2 changed files with 14 additions and 0 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue