Sha256: e367a43804db04735ee7be94b4b887a4e2594d6faf36c909e67c075cb95e2624

Contents?: true

Size: 1.16 KB

Versions: 12

Compression:

Stored size: 1.16 KB

Contents

/*
 * Copyright (C) 2008-2013 NEC Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 2, as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */


#ifndef CHECKS_H
#define CHECKS_H


#define DEPRECATED __attribute__ ( ( deprecated ) )
#define UNUSED( x ) ( void ) ( x )
#define UNREACHABLE() die( "unreachable code" )
#define die_if_NULL( data )                                     \
  if ( data == NULL ) {                                         \
    die( "Argument of %s must not be NULL.", __func__ );        \
  }


#endif // CHECKS_H


/*
 * Local variables:
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * End:
 */

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
trema-0.3.21 src/lib/checks.h
trema-0.3.20 src/lib/checks.h
trema-0.3.19 src/lib/checks.h
trema-0.3.18 src/lib/checks.h
trema-0.3.17 src/lib/checks.h
trema-0.3.16 src/lib/checks.h
trema-0.3.15 src/lib/checks.h
trema-0.3.14 src/lib/checks.h
trema-0.3.13 src/lib/checks.h
trema-0.3.12 src/lib/checks.h
trema-0.3.11 src/lib/checks.h
trema-0.3.10 src/lib/checks.h