Changeset 955f2a5 in mainline for uspace/lib/c/generic/assert.c


Ignore:
Timestamp:
2011-05-21T11:26:23Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b3e854
Parents:
0c33b1d5
Message:

implement assert_static() as a safer replacement to malloc_assert()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/assert.c

    r0c33b1d5 r955f2a5  
    3333#include <assert.h>
    3434#include <stdio.h>
     35#include <io/klog.h>
    3536#include <stdlib.h>
    3637#include <stacktrace.h>
     
    4445}
    4546
     47void assert_static_abort(const char *msg)
     48{
     49        klog_write(msg, str_size(msg));
     50        abort();
     51}
     52
    4653/** @}
    4754 */
Note: See TracChangeset for help on using the changeset viewer.