lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 73e6bec 1/7: Do not indent top-level preproce


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 73e6bec 1/7: Do not indent top-level preprocessor directives
Date: Thu, 5 Jan 2017 03:41:39 +0000 (UTC)

branch: master
commit 73e6bec6ba6ffacf54736a482b03b862b0957ca8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Do not indent top-level preprocessor directives
---
 currency_test.cpp              |    7 ++-----
 expression_template_0_test.cpp |    4 ++--
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/currency_test.cpp b/currency_test.cpp
index 18c7cf6..97a4f17 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -177,9 +177,7 @@ void test_stream_roundtrip
 
 void currency_test::test_streams()
 {
-    #define TEST_ROUNDTRIP(c, str) \
-        test_stream_roundtrip(c, str, __FILE__, __LINE__)
-
+#define TEST_ROUNDTRIP(c, str) test_stream_roundtrip(c, str, __FILE__, 
__LINE__)
     TEST_ROUNDTRIP( currency(123, 45),  "123.45");
     TEST_ROUNDTRIP( currency(  0,  0),    "0.00");
     TEST_ROUNDTRIP( currency(  0,  1),    "0.01");
@@ -187,8 +185,7 @@ void currency_test::test_streams()
     TEST_ROUNDTRIP(-currency(123, 45), "-123.45");
     TEST_ROUNDTRIP(-currency(  0,  1),   "-0.01");
     TEST_ROUNDTRIP(-currency(  0, 99),   "-0.99");
-
-    #undef TEST_ROUNDTRIP
+#undef TEST_ROUNDTRIP
 }
 
 template<>
diff --git a/expression_template_0_test.cpp b/expression_template_0_test.cpp
index fff87f6..41e0f99 100644
--- a/expression_template_0_test.cpp
+++ b/expression_template_0_test.cpp
@@ -111,11 +111,11 @@ struct greater_of
     std::valarray<double> va2;
 
     // ub*: boost uBLAS.
-    #if defined USE_UBLAS
+#if defined USE_UBLAS
     boost::numeric::ublas::vector<double> ub0;
     boost::numeric::ublas::vector<double> ub1;
     boost::numeric::ublas::vector<double> ub2;
-    #endif // defined USE_UBLAS
+#endif // defined USE_UBLAS
 
     // pv*: PETE standard vectors.
     std::vector<double> pv0;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]