Branch: Tag:

2007-07-03

2007-07-03 08:54:37 by Martin Stjernholm <mast@lysator.liu.se>

Allow passing 0 as amount to out_of_memory_error when the allocation
amount isn't known.

Rev: src/pike_error.h:1.41

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_error.h,v 1.40 2007/06/16 23:52:52 mast Exp $ + || $Id: pike_error.h,v 1.41 2007/07/03 08:54:37 mast Exp $   */      #ifndef PIKE_ERROR_H
339:    size_t amount)   {    resource_error (func, base_sp, args, "memory", amount, -  msg_out_of_mem_2, amount); +  amount ? msg_out_of_mem_2 : msg_out_of_mem, amount);   }      #define SIMPLE_OUT_OF_MEMORY_ERROR(FUNC, AMOUNT) \