|
|
|||
File indexing completed on 2026-04-09 07:49:13
0001 /* 0002 * Copyright (c) 2019 Opticks Team. All Rights Reserved. 0003 * 0004 * This file is part of Opticks 0005 * (see https://bitbucket.org/simoncblyth/opticks). 0006 * 0007 * Licensed under the Apache License, Version 2.0 (the "License"); 0008 * you may not use this file except in compliance with the License. 0009 * You may obtain a copy of the License at 0010 * 0011 * http://www.apache.org/licenses/LICENSE-2.0 0012 * 0013 * Unless required by applicable law or agreed to in writing, software 0014 * distributed under the License is distributed on an "AS IS" BASIS, 0015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0016 * See the License for the specific language governing permissions and 0017 * limitations under the License. 0018 */ 0019 0020 0021 0022 #include <cassert> 0023 #include "OPTICKS_LOG.hh" 0024 0025 #define G4DAE_EXTRAS_NO_VALUE 0026 #define G4DAE_EXTRAS_WITH_ONE 1 0027 #define G4DAE_EXTRAS_WITH_ZERO 0 0028 0029 int main(int argc, char** argv) 0030 { 0031 OPTICKS_LOG(argc, argv); 0032 0033 int count(0); 0034 0035 #ifdef G4DAE_EXTRAS_NO_VALUE 0036 LOG(info) << "G4DAE_EXTRAS_NO_VALUE" ; 0037 count++ ; 0038 #else 0039 LOG(info) << "not G4DAE_EXTRAS_NO_VALUE" ; 0040 #endif 0041 0042 #ifdef G4DAE_EXTRAS_WITH_ONE 0043 LOG(info) << "G4DAE_EXTRAS_WITH_ONE" ; 0044 count++ ; 0045 #else 0046 LOG(info) << "not G4DAE_EXTRAS_WITH_ONE" ; 0047 #endif 0048 0049 0050 #ifdef G4DAE_EXTRAS_WITH_ZERO 0051 LOG(info) << "G4DAE_EXTRAS_WITH_ZERO" ; 0052 count++ ; 0053 #else 0054 LOG(info) << "not G4DAE_EXTRAS_WITH_ZERO" ; 0055 #endif 0056 0057 0058 LOG(info) << " count : " << count ; 0059 assert(count == 3 ); 0060 0061 return 0 ; 0062 } 0063 0064 0065 /* 0066 0067 simon:sysrap blyth$ uname -a 0068 Darwin simon.phys.ntu.edu.tw 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64 0069 simon:sysrap blyth$ hash_define_without_value 0070 2017-12-01 11:11:17.313 INFO [777934] [main@13] G4DAE_EXTRAS_NO_VALUE 0071 2017-12-01 11:11:17.313 INFO [777934] [main@19] G4DAE_EXTRAS_WITH_ONE 0072 2017-12-01 11:11:17.313 INFO [777934] [main@26] G4DAE_EXTRAS_WITH_ZERO 0073 simon:sysrap blyth$ 0074 0075 0076 */ 0077 0078 0079
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|