aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src/desire.h
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-14 02:20:54 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-14 02:20:54 +0000
commit5aaeee1dd839c3bd3720dbbc1bc05872f2c0e14f (patch)
tree7225bcfa2d41da20915e42593408513e2ebd2f8b /desiredata/src/desire.h
parenteef69c6f7748d5c6c19c5f7bae98985877f3cb4f (diff)
fix multiple definition of throw_if_negative
svn path=/trunk/; revision=11345
Diffstat (limited to 'desiredata/src/desire.h')
-rw-r--r--desiredata/src/desire.h2
1 files changed, 1 insertions, 1 deletions
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))