include: rb: doc: Move code to make Doxygen happy
Moved alloca.h trick further down the file to workaround Doxygen getting confused with #ifdef/#ifndef. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
9dbb1ecc53
commit
68b1930309
1 changed files with 12 additions and 12 deletions
|
@ -4,18 +4,6 @@
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Our SDK/toolchains integration seems to be inconsistent about
|
|
||||||
* whether they expose alloca.h or not. On gcc it's a moot point as
|
|
||||||
* it's always builtin.
|
|
||||||
*/
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#ifndef alloca
|
|
||||||
#define alloca __builtin_alloca
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#include <alloca.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file
|
* @file
|
||||||
* @defgroup rbtree_apis Balanced Red/Black Tree
|
* @defgroup rbtree_apis Balanced Red/Black Tree
|
||||||
|
@ -52,6 +40,18 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
/* Our SDK/toolchains integration seems to be inconsistent about
|
||||||
|
* whether they expose alloca.h or not. On gcc it's a moot point as
|
||||||
|
* it's always builtin.
|
||||||
|
*/
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#ifndef alloca
|
||||||
|
#define alloca __builtin_alloca
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Balanced red/black tree node structure
|
* @brief Balanced red/black tree node structure
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue