mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
assert non-null objects when making board
This commit is contained in:
parent
72873848fd
commit
6fd2881074
1 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,10 @@ board_make( MPFORMAL ModelCtxt* model, ServerCtxt* server, DrawCtx* draw,
|
|||
XW_UtilCtxt* util )
|
||||
{
|
||||
BoardCtxt* result = (BoardCtxt*)XP_MALLOC( mpool, sizeof( *result ) );
|
||||
XP_ASSERT( !!draw );
|
||||
XP_ASSERT( !!server );
|
||||
XP_ASSERT( !!util );
|
||||
XP_ASSERT( !!model );
|
||||
|
||||
if ( result != NULL ) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue