Changeset 432a269 in mainline for uspace/lib/posix/assert.h


Ignore:
Timestamp:
2011-09-16T21:13:57Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3a11f17
Parents:
c0e53ff (diff), fd07e526 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/assert.h

    rc0e53ff r432a269  
    11/*
    2  * Copyright (c) 2006 Ondrej Palkovsky
     2 * Copyright (c) 2011 Jiri Zarevucky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup libposix
    3030 * @{
    3131 */
    32 /** @file
     32/** @file Program assertion.
    3333 */
    3434
    35 #ifndef LIBC_NS_OBSOLETE_H_
    36 #define LIBC_NS_OBSOLETE_H_
     35/* NO include guard on purpose. */
    3736
    38 #include <sys/types.h>
    39 #include <task.h>
     37#include "libc/assert.h"
    4038
    41 extern int service_obsolete_connect(sysarg_t, sysarg_t, sysarg_t);
    42 extern int service_obsolete_connect_blocking(sysarg_t, sysarg_t,
    43     sysarg_t);
     39#undef assert
    4440
     41#ifndef NDEBUG
     42        #define assert(expr) ((expr) ? (void) 0 : assert_abort(#expr, __FILE__, __LINE__))
     43#else
     44        #define assert(expr) ((void) 0)
    4545#endif
    4646
Note: See TracChangeset for help on using the changeset viewer.