This file is indexed.

/usr/include/trilinos/MLAPI_Error.h is in libtrilinos-ml-dev 12.10.1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact      */
/* person and disclaimer.                                               */
/* ******************************************************************** */
#ifndef MLAPI_ERROR_H
#define MLAPI_ERROR_H

#include <string>
#include <iostream>

namespace MLAPI {

typedef struct StackEntry {
  int line;
  std::string FileName;
  std::string FuncName;
} Entry;

#ifdef MLAPI_CHECK
#ifdef HAVE_ML_CFUNC
#define StackPush() \
  StackPush_(__PRETTY_FUNCTION__, __FILE__, __LINE__)
#else
#define StackPush() \
  StackPush_("function not available", __FILE__, __LINE__)
#endif
#else
#define StackPush()
#endif

#ifdef MLAPI_CHECK
void StackPush_(std::string FuncName, std::string FileName, int line);

void StackPop();

void StackPrint();
#else
inline void StackPop() {}
inline void StackPrint() {std::cout << "Compile with -DMLAPI_CHECK to get the function stack" << std::endl;}
#endif


} // namespace MLAPI

#ifndef ML_THROW
#ifdef HAVE_ML_CFUNC
// some old compilers do not have __func__
#define ML_THROW(str,val) { \
  std::cerr << "ERROR: In " << __PRETTY_FUNCTION__ << "()" << std::endl; \
  std::cerr << "ERROR: File " << __FILE__ << ", line " << __LINE__ << std::endl; \
  std::cerr << "ERROR: " << str << std::endl; \
  StackPrint(); \
  throw(val); \
  }
#else
#define ML_THROW(str,val) { \
  std::cerr << "ERROR: File " << __FILE__ << ", line " << __LINE__ << std::endl; \
  std::cerr << "ERROR: " << str << std::endl; \
  StackPrint(); \
  throw(val); \
  }
#endif // HAVE_ML_CFUNC
#endif // ndef ML_THROW

#endif // MLAPI_ERROR_H