From f9e95ad4e57b1b4f11499eeea73080de399782b2 Mon Sep 17 00:00:00 2001 From: marian Date: Mon, 20 Jul 2015 12:55:56 +0000 Subject: [PATCH] Added math vectors to Windows build. Fixed variadic macro. Added missing export directive. git-svn-id: http://voip.null.ro/svn/yate@6007 acf43c95-373e-0410-b603-e72c3f656dc1 --- windows/Libyate.vcproj | 10 +++++++++- yatemath.h | 11 +++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/windows/Libyate.vcproj b/windows/Libyate.vcproj index b1478524..e841ed70 100644 --- a/windows/Libyate.vcproj +++ b/windows/Libyate.vcproj @@ -1,7 +1,7 @@ + + @@ -762,6 +766,10 @@ RelativePath="..\yateclass.h" > + + diff --git a/yatemath.h b/yatemath.h index cd18ff7c..3e9f8d88 100644 --- a/yatemath.h +++ b/yatemath.h @@ -5,7 +5,7 @@ * Math data types * * Yet Another Telephony Engine - a fully featured software PBX and IVR - * Copyright (C) 2004-2014 Null Team + * Copyright (C) 2015 Null Team * * This software is distributed under multiple licenses; * see the COPYING file in the main directory for licensing @@ -29,10 +29,17 @@ namespace TelEngine { #ifdef DEBUG +#ifdef _WINDOWS +#define YMATH_FAIL(cond,...) { \ + if (!(cond)) \ + Debug(DebugFail,__VA_ARGS__); \ +} +#else #define YMATH_FAIL(cond,args...) { \ if (!(cond)) \ Debug(DebugFail,args); \ } +#endif #else #ifdef _WINDOWS #define YMATH_FAIL do { break; } while @@ -379,7 +386,7 @@ private: * Its purpose is to offer a common interface when processing lists * @short Base class for vector class(es) */ -class MathVectorBase : public GenObject +class YATE_API MathVectorBase : public GenObject { YCLASS(MathVectorBase,GenObject) public: