From 5aaeee1dd839c3bd3720dbbc1bc05872f2c0e14f Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 14 May 2009 02:20:54 +0000 Subject: fix multiple definition of throw_if_negative svn path=/trunk/; revision=11345 --- desiredata/src/desire.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desiredata') diff --git a/desiredata/src/desire.h b/desiredata/src/desire.h index eb1ef989..4097fdc8 100644 --- a/desiredata/src/desire.h +++ b/desiredata/src/desire.h @@ -362,7 +362,7 @@ EXTERN int gstack_empty(); /* that's a completely different stack: see pd_pushsy class Error {}; class VeryUnlikelyError : Error {}; -int throw_if_negative(int n) {if (n<0) throw VeryUnlikelyError(); else return n;} +inline static int throw_if_negative(int n) {if (n<0) throw VeryUnlikelyError(); else return n;} #define asprintf(ARGS...) throw_if_negative( asprintf(ARGS)) #define vasprintf(ARGS...) throw_if_negative(vasprintf(ARGS)) -- cgit v1.2.1