Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] (PR#6223) improved die()
Home

[Freeciv-Dev] (PR#6223) improved die()

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#6223) improved die()
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Sep 2003 21:18:07 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[per - Sun Sep 21 10:51:31 2003]:

> This improves the die() call so that file and line where die() was called
> is printed on exit. This is very useful for debugging and bug reports. I
> hope the use of variadic macros is portable. I think they are C99 safe, at
> least.

This ... functionality in a macro is not standard C.  See freelog() for
how to do it for gcc only.

jason



[Prev in Thread] Current Thread [Next in Thread]