Add memtest support.
[syslinux-debian/hramrach.git] / gpxe / src / include / alloca.h
blob08398fb3be193fc533d7709f24222aac5a17515b
1 #ifndef _ALLOCA_H
2 #define _ALLOCA_H
4 /**
5 * @file
7 * Temporary memory allocation
9 */
11 #include <stdint.h>
13 /**
14 * Allocate temporary memory from the stack
16 * @v size Size to allocate
17 * @ret ptr Allocated memory
19 * This memory will be freed automatically when the containing
20 * function returns. There are several caveats regarding use of
21 * alloca(); use it only if you already know what they are.
23 #define alloca(size) __builtin_alloca ( size )
25 #endif /* _ALLOCA_H */