Changeset 34120f10 in mainline for boot/generic/include/assert.h


Ignore:
Timestamp:
2023-10-27T19:38:31Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
63ed840
Parents:
c89ae25 (diff), 694ca3d6 (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 code deduplication work

TL;DR: Added directory /common, which now contains the sole existing
copy of ADT, printf_core, and a few other pieces. Should make changes
to any of those less of a headache.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • boot/generic/include/assert.h

    rc89ae25 r34120f10  
    11/*
    2  * Copyright (c) 2006 Ondrej Palkovsky
     2 * Copyright (c) 2023 Jiří Zárevúcky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kernel_generic_mm
    30  * @{
    31  */
    32 /** @file
    33  */
     29#ifndef BOOT_ASSERT_H_
     30#define BOOT_ASSERT_H_
    3431
    35 #ifndef KERN_STDLIB_H_
    36 #define KERN_STDLIB_H_
     32#define assert(expr) ((void) (expr))
    3733
    38 #include <stddef.h>
    39 
    40 extern void *malloc(size_t)
    41     __attribute__((malloc));
    42 extern void *realloc(void *, size_t)
    43     __attribute__((warn_unused_result));
    44 extern void free(void *);
    45 
    46 #endif
    47 
    48 /** @}
    49  */
     34#endif /* BOOT_ASSERT_H_ */
Note: See TracChangeset for help on using the changeset viewer.