last changes from bloomberg.

This commit is contained in:
Vahagn Khachatryan
2021-03-25 08:15:36 -04:00
parent 1a17b9fe6c
commit 721e183dc9
20 changed files with 1391 additions and 0 deletions

55
cpp/p.cpp Normal file
View File

@@ -0,0 +1,55 @@
/* Check cf5-opt.vim defs.
VIM: let g:lcppflags="-O2 -pthread -D__USE_XOPEN2K8"
VIM: let g:wcppflags="/O2 /EHsc /DWIN32"
VIM: let g:cppflags=""
VIM: let g:ldflags=""
VIM: let g:ldlibpath=""
VIM: let g:argv=""
VIM-: let g:cf5output=0
*/
#include <iostream>
#include <exception>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
int some_c_function_( int param1 );
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
int main ( void )
{try{
some_c_function_( 99 );
if (int i = 1)
std::cout << "lkkk" << i << std::endl;
return 0;
}
catch ( const std::exception& e )
{
std::cerr << std::endl
<< "std::exception(\"" << e.what() << "\")." << std::endl;
return 2;
}
catch ( ... )
{
std::cerr << std::endl
<< "unknown exception." << std::endl;
return 1;
}}