Merge ~info-martin-konrad/epics-base:retire-epicsexcept into ~epics-core/epics-base/+git/epics-base:3.15

Proposed by Martin Konrad
Status: Merged
Merged at revision: 475963453c74ab5b8ac95590e3d110246169093a
Proposed branch: ~info-martin-konrad/epics-base:retire-epicsexcept
Merge into: ~epics-core/epics-base/+git/epics-base:3.15
Diff against target: 88 lines (+0/-72)
2 files modified
dev/null (+0/-71)
src/libCom/cppStd/Makefile (+0/-1)
Reviewer Review Type Date Requested Status
Andrew Johnson Approve
mdavidsaver Approve
Review via email: mp+375446@code.launchpad.net

Description of the change

No impact on users. Let's merge this into 3.15 and 7.0.

To post a comment you must log in.
Revision history for this message
mdavidsaver (mdavidsaver) wrote :

Fine by me.

review: Approve
Revision history for this message
Andrew Johnson (anj) wrote :

Thanks for cleaning up...

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/src/libCom/cppStd/Makefile b/src/libCom/cppStd/Makefile
2index 989b87e..23834e7 100644
3--- a/src/libCom/cppStd/Makefile
4+++ b/src/libCom/cppStd/Makefile
5@@ -9,6 +9,5 @@
6
7 SRC_DIRS += $(LIBCOM)/cppStd
8 INC += epicsAlgorithm.h
9-INC += epicsExcept.h
10 INC += epicsMemory.h
11
12diff --git a/src/libCom/cppStd/epicsExcept.h b/src/libCom/cppStd/epicsExcept.h
13deleted file mode 100644
14index e689997..0000000
15--- a/src/libCom/cppStd/epicsExcept.h
16+++ /dev/null
17@@ -1,71 +0,0 @@
18-/*************************************************************************\
19-* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
20-* National Laboratory.
21-* Copyright (c) 2002 The Regents of the University of California, as
22-* Operator of Los Alamos National Laboratory.
23-* EPICS BASE Versions 3.13.7
24-* and higher are distributed subject to a Software License Agreement found
25-* in file LICENSE that is included with this distribution.
26-\*************************************************************************/
27-// Author: Andrew Johnson & Jeff Hill
28-// Date: December 2000
29-
30-#ifndef __EPICS_EXCEPT_H__
31-#define __EPICS_EXCEPT_H__
32-
33-#define epicsThrowHere(exc) \
34- throw locationException(exc, __FILE__, __LINE__)
35-
36-class sourceLocation {
37-public: // Functions
38- sourceLocation(const char *fileName, int lineNumber);
39-// sourceLocation(const sourceLocation&); Copy constructable
40-// sourceLocation& operator=(const sourceLocation&); Assignable
41-
42- const char *fileName() const;
43- int lineNumber() const;
44-
45-private: // Hide compiler-generated member functions
46- sourceLocation(); // default constructor
47-
48-private: // Data
49- const char *file;
50- int line;
51-};
52-
53-template <class T>
54-class locationException : public T, public sourceLocation {
55-public:
56- locationException(const T& exc, const char *fileName, int lineNumber);
57-};
58-
59-
60-/* Example:
61- * if (status) epicsThrowHere(std::logic_error("operation failed!"));
62- * try { ... } catch(sourceLocation& where) { ... }
63- */
64-
65-// END OF DECLARATIONS
66-
67
68-// INLINE FUNCTIONS
69-
70-// sourceFileLocation
71-inline sourceLocation::sourceLocation (const char *fileName, int lineNumber) :
72- file(fileName), line(lineNumber) {}
73-
74-inline const char* sourceLocation::fileName () const {
75- return this->file;
76-}
77-
78-inline int sourceLocation::lineNumber () const {
79- return this->line;
80-}
81-
82-// locationException<T>
83-template <class T>
84-inline locationException<T>::locationException
85- (const char *fileName, int lineNumber, const E& exc) :
86- T(exc), sourceLocation(fileName, lineNumber) {}
87-
88-
89-#endif // __EPICS_EXCEPT_H__

Subscribers

People subscribed via source and target branches