summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum2012-10-02 20:27:32 -0700
committerJosh Blum2012-10-02 20:27:32 -0700
commitd4cd9770dc973c2a506faeca80777ccda93323e3 (patch)
treed93ec32c7e0969b01b9383b5c9eb5714fdae1ae7
parentbc1d4e117fab42150bc62d1940e142dd6d10aadc (diff)
downloadsandhi-d4cd9770dc973c2a506faeca80777ccda93323e3.tar.gz
sandhi-d4cd9770dc973c2a506faeca80777ccda93323e3.tar.bz2
sandhi-d4cd9770dc973c2a506faeca80777ccda93323e3.zip
added GRAS_DEBUG to be set in Debug mode
-rw-r--r--include/gnuradio/gras.hpp4
-rw-r--r--lib/CMakeLists.txt4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/gnuradio/gras.hpp b/include/gnuradio/gras.hpp
index 3b7c651..93b2ef1 100644
--- a/include/gnuradio/gras.hpp
+++ b/include/gnuradio/gras.hpp
@@ -28,7 +28,9 @@
#define GRAS_MAX_ALIGNMENT 32
//define cross platform attribute macros
-#if defined(BOOST_MSVC)
+#if defined(GRAS_DEBUG)
+ #define GRAS_FORCE_INLINE inline
+#elif defined(BOOST_MSVC)
#define GRAS_FORCE_INLINE __forceinline
#elif defined(__GNUG__) && __GNUG__ >= 4
#define GRAS_FORCE_INLINE inline __attribute__((always_inline))
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 0ecd2d5..1eeb832 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -7,6 +7,10 @@ set(GRAS_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../)
set(GRAS_BINARY_DIR ${CMAKE_BINARY_DIR}/gruel/src)
set(RUNTIME_SOURCE_DIR ${CMAKE_SOURCE_DIR}/gnuradio-core/src/lib/runtime)
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ add_definitions(-DGRAS_DEBUG)
+endif()
+
########################################################################
# Setup Theron Deps
########################################################################