11 #if defined(__BORLANDC__)
19 using std::ostringstream;
22 #define STR2(x) STR(x)
35 ss <<
"ADMB Program: " << program_name <<
"\n\n";
39 #if defined(ADMB_VERSION)
40 ss <<
"-" <<
STR2(ADMB_VERSION);
44 ss <<
" optimized libraries";
46 ss <<
" safe libraries";
48 ss <<
" was compiled using ";
50 #if defined(__clang__)
51 #if defined(__apple_build_version__)
54 ss <<
"Clang C++ "<< __clang_major__ <<
'.' << __clang_minor__ <<
'.'
55 << __clang_patchlevel__;
56 #if defined(__arm64__)
58 #elif defined(__x86_64)
63 #elif defined(__GNUC__)
64 ss <<
"GNU C++ " << __GNUC__ <<
'.' << __GNUC_MINOR__ <<
'.'
65 << __GNUC_PATCHLEVEL__;
71 #elif defined(_MSC_VER)
72 ss <<
"Microsoft Visual C++ ";
75 #elif (_MSC_VER==1310)
77 #elif (_MSC_VER==1400)
79 #elif (_MSC_VER==1500)
81 #elif (_MSC_VER==1600)
83 #elif (_MSC_VER==1700)
85 #elif (_MSC_VER==1800)
87 #elif (_MSC_VER==1900)
90 ss <<
"2017 Version 15";
92 ss <<
"2019 Version 16";
93 #elif (_MSC_VER>=1930)
94 ss <<
"2022 Version 17.0";
97 #warning "Unknown MSVC version."
105 #elif defined(__BORLANDC__)
107 #if (__BORLANDC__==0x550)
109 #elif (__BORLANDC__==0x551)
113 #elif defined(__SUNPRO_CC)
114 ss <<
"Solaris Studio";
115 #if (__SUNPRO_CC==0x420)
117 #elif (__SUNPRO_CC==0x500)
120 #if defined(__x86_64)
125 #elif defined(__INTEL_COMPILER)
127 #if (__INTEL_COMPILER==500)
129 #elif (__INTEL_COMPILER==600)
131 #elif (__INTEL_COMPILER==800)
133 #elif (__INTEL_COMPILER==900)
136 #if defined(__x86_64)
142 ss <<
"unknown compiler";
144 ss <<
" on " << __DATE__ <<
".\n";
145 #if defined(ADMB_REVISION)
146 ss <<
"Revision: " <<
STR2(ADMB_REVISION) <<
"\n";
148 ss <<
"Copyright (c) 2008-2021 ADMB Foundation"
149 <<
" and Regents of the University of California\n";
151 cout << ss.str() <<
endl;
void banner(const adstring &program_name)
Generates a boast. Provides information on SVN revision number, compiler and operating system...
char which_library()
Get ADMB library mode.
prnstream & endl(prnstream &)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.