summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/alloca.h
blob: 08398fb3be193fc533d7709f24222aac5a17515b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _ALLOCA_H
#define _ALLOCA_H

/**
 * @file
 *
 * Temporary memory allocation
 *
 */

#include <stdint.h>

/**
 * Allocate temporary memory from the stack
 *
 * @v size		Size to allocate
 * @ret ptr		Allocated memory
 *
 * This memory will be freed automatically when the containing
 * function returns.  There are several caveats regarding use of
 * alloca(); use it only if you already know what they are.
 */
#define alloca(size) __builtin_alloca ( size )

#endif /* _ALLOCA_H */