Fix typo
[rofl0r-order-pp.git] / example / lambda / checked_malloc.h
blob89934d97efabe24bbcefb849e313d1161b259caa
1 #ifndef ORDER_EXAMPLE_LAMBDA_CHECKED_MALLOC_H_VAJK20040620
2 #define ORDER_EXAMPLE_LAMBDA_CHECKED_MALLOC_H_VAJK20040620
4 // (C) Copyright Vesa Karvonen 2004.
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE.)
9 #include <stddef.h>
11 // `checked_malloc(size)' allocates a new block of memory of `size'
12 // bytes from a garbage collected heap. If `size' is negative or the
13 // allocation fails, the program will be exited with an error
14 // message.
15 extern void* checked_malloc(ptrdiff_t size);
17 #endif