diff options
Diffstat (limited to 'desiredata/src')
-rw-r--r-- | desiredata/src/desire.h | 2 |
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)) |