/*------------------------------------------------------------------------------
 src/lib/dj/djAssert.h
  
 Copyright (c) 2004-2006 Darby Johnston.
 All rights reserved.
 Use is subject to license terms.
------------------------------------------------------------------------------*/

#ifndef DJ_ASSERT_H
#define DJ_ASSERT_H

namespace dj {

// Assertion.
//
void _assert(const char * fileName, int line);

#ifdef DJ_ASSERT
#undef DJ_ASSERT
#define DJ_ASSERT(in) if (! (in)) dj::_assert(__FILE__, __LINE__)
#else
#define DJ_ASSERT(in)
#endif

}

#endif
