Browse Source

Fix error in ASSERT macro.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 17 years ago
parent
commit
39423ef8de
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      debug.h
  2. +1
    -1
      grid.C

+ 1
- 1
debug.h View File

@@ -100,7 +100,7 @@ warnf ( warning_t level,

#ifndef NDEBUG
#define DEBUG( fmt, args... ) warnf( W_MESSAGE, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmt, ## args )
#define ASSERT( pred, fmt, args... ) ( do { if ( ! (pred) ) warnf( W_ASSERTION, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmd, ## args ); abort(); } while ( 0 ) )
#define ASSERT( pred, fmt, args... ) do { if ( ! (pred) ) { warnf( W_ASSERTION, __MODULE__, __FILE__, __FUNCTION__, __LINE__, fmt, ## args ); abort(); } } while ( 0 )
#else
#define DEBUG( fmt, args... )
#define ASSERT( pred, fmt, args... )


+ 1
- 1
grid.C View File

@@ -634,8 +634,8 @@ Grid::draw ( Canvas *c, int bx, int by, int bw, int bh )
if ( ! e->is_note_on() )
continue;


tick_t ts = e->timestamp();

ASSERT( e->link(), "found a non-linked note" );

tick_t tse = e->link()->timestamp();


Loading…
Cancel
Save