Browse Source

Disable nvtt asserts.

Branimir Karadžić 2 years ago
parent
commit
5d61905eb1
2 changed files with 3 additions and 2 deletions
  1. 2 1
      3rdparty/nvtt/nvcore/debug.h
  2. 1 1
      3rdparty/nvtt/nvcore/nvcore.h

+ 2 - 1
3rdparty/nvtt/nvcore/debug.h

@@ -1,4 +1,4 @@
-// This code is in the public domain -- Ignacio Castaño <[email protected]>
+// This code is in the public domain -- Ignacio Castaño <[email protected]>
 
 #ifndef NV_CORE_DEBUG_H
 #define NV_CORE_DEBUG_H
@@ -24,6 +24,7 @@
 
 #   define nvAssert(exp) nvNoAssert(exp)
 #   define nvCheck(exp) nvNoAssert(exp)
+#	define nvCheckMacro(exp) (exp)
 #   define nvDebugAssert(exp) nvNoAssert(exp)
 #   define nvDebugCheck(exp) nvNoAssert(exp)
 #   define nvDebugBreak() nvNoAssert(0)

+ 1 - 1
3rdparty/nvtt/nvcore/nvcore.h

@@ -4,7 +4,7 @@
 #define NV_CORE_H
 
 #define NVCORE_SHARED 0
-#define NV_NO_ASSERT 0
+#define NV_NO_ASSERT 1
 
 // Function linkage
 #if NVCORE_SHARED