Ignore:
Timestamp:
05/17/10 10:06:48 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added some assertion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk/src/c/include/macros.h

    r3595 r3771  
    55#ifndef _MACROS_H_
    66#define _MACROS_H_
     7
     8#ifdef HAVE_CONFIG_H
     9        #include "config.h"
     10#else
     11#error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
     12#endif
    713
    814/*Printing macro: */
     
    2430#else
    2531#define ISSMASSERT(ignore)\
    26   ((void) 0)
     32  printf("ISSM_DEBUG undefined\n");
    2733#endif
     34#define ISSMASSERT2(statement)\
     35  if (!(statement)) ISSMERROR("ASSERT2 STOP"); else printf("NO STOP\n")
    2836
    2937/*The following macros hide the error exception handling in a matlab module. Just put
Note: See TracChangeset for help on using the changeset viewer.