Last change
on this file was
e16e8f2,
checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago
|
bootstuff
|
-
Property mode set to
100644
|
File size:
489 bytes
|
Rev | Line | |
---|
[e16e8f2] | 1 | #ifndef _ALLOCA_H |
---|
| 2 | #define _ALLOCA_H |
---|
| 3 | |
---|
| 4 | /** |
---|
| 5 | * @file |
---|
| 6 | * |
---|
| 7 | * Temporary memory allocation |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #include <stdint.h> |
---|
| 12 | |
---|
| 13 | /** |
---|
| 14 | * Allocate temporary memory from the stack |
---|
| 15 | * |
---|
| 16 | * @v size Size to allocate |
---|
| 17 | * @ret ptr Allocated memory |
---|
| 18 | * |
---|
| 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. |
---|
| 22 | */ |
---|
| 23 | #define alloca(size) __builtin_alloca ( size ) |
---|
| 24 | |
---|
| 25 | #endif /* _ALLOCA_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.