Browse Source

gobj: don't define GeomVertexReader::empty_buffer in opt3 build

rdb 6 years ago
parent
commit
a019520dbc
2 changed files with 4 additions and 4 deletions
  1. 3 3
      panda/src/gobj/geomVertexReader.cxx
  2. 1 1
      panda/src/gobj/geomVertexReader.h

+ 3 - 3
panda/src/gobj/geomVertexReader.cxx

@@ -13,9 +13,9 @@
 
 
 #include "geomVertexReader.h"
 #include "geomVertexReader.h"
 
 
-#ifndef NDEBUG
-  // This is defined just for the benefit of having something non-NULL to
-  // return from a nassertr() call.
+#ifdef _DEBUG
+// This is defined just for the benefit of having something non-NULL to
+// return from a nassertr() call.
 const unsigned char GeomVertexReader::empty_buffer[100] = { 0 };
 const unsigned char GeomVertexReader::empty_buffer[100] = { 0 };
 #endif
 #endif
 
 

+ 1 - 1
panda/src/gobj/geomVertexReader.h

@@ -155,7 +155,7 @@ private:
   int _start_row;
   int _start_row;
   bool _force;
   bool _force;
 
 
-#ifndef NDEBUG
+#ifdef _DEBUG
   // This is defined just for the benefit of having something non-NULL to
   // This is defined just for the benefit of having something non-NULL to
   // return from a nassertr() call.
   // return from a nassertr() call.
   static const unsigned char empty_buffer[100];
   static const unsigned char empty_buffer[100];