Explorar el Código

Z991239-385 #comment Debug/Release的打印

gifur hace 5 años
padre
commit
b8ec24cbc1
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      spbase/SpBase.cpp

+ 6 - 1
spbase/SpBase.cpp

@@ -125,7 +125,12 @@ SPBASE_API void GetLibVersion(CVersion& version)
 
 SPBASE_API LPCSTR GetLibBuildDate()
 {
-	static char buildDate[] = __DATE__ " " __TIME__;
+#ifdef WITH_DEBUG
+	static char buildDate[] = __DATE__ " " __TIME__ " Debug ";
+#else
+	static char buildDate[] = __DATE__ " " __TIME__ " Release ";
+#endif // WITH_DEBUG
+
 	return buildDate;
 }