Skip to content
Snippets Groups Projects
Commit 997788ee authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

block_alloc_h.h now complains if it's included after block_alloc.h.

Rev: src/block_alloc_h.h:1.21
parent 5467cd4a
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
|| This file is part of Pike. For copyright information see COPYRIGHT. || This file is part of Pike. For copyright information see COPYRIGHT.
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
|| for more information. || for more information.
|| $Id: block_alloc_h.h,v 1.20 2003/06/30 17:05:56 mast Exp $ || $Id: block_alloc_h.h,v 1.21 2004/02/06 12:26:15 grubba Exp $
*/ */
#undef BLOCK_ALLOC #undef BLOCK_ALLOC
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#define PIKE_HASH_T size_t #define PIKE_HASH_T size_t
#endif /* !PIKE_HASH_T */ #endif /* !PIKE_HASH_T */
#ifdef BLOCK_ALLOC_USED
#error "block_alloc.h must be included after all uses of block_alloc_h.h"
#endif /* BLOCK_ALLOC_USED */
#define BLOCK_ALLOC(DATA,SIZE) \ #define BLOCK_ALLOC(DATA,SIZE) \
struct DATA *PIKE_CONCAT(alloc_,DATA)(void); \ struct DATA *PIKE_CONCAT(alloc_,DATA)(void); \
void PIKE_CONCAT3(really_free_,DATA,_unlocked)(struct DATA *d); \ void PIKE_CONCAT3(really_free_,DATA,_unlocked)(struct DATA *d); \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment