]> www.ginac.de Git - cln.git/blob - src/base/proplist/cl_pl_add.cc
Remove exception hooks in favor of real C++ exceptions:
[cln.git] / src / base / proplist / cl_pl_add.cc
1 // class cl_property_list.
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/proplist.h"
8
9
10 // Implementation.
11
12 #include "cln/exception.h"
13
14 namespace cln {
15
16 // This tells the compiler to put the `cl_property' vtable into this file.
17 void cl_property::dummy () {}
18
19 void cl_property_list::add_property (cl_property* new_property)
20 {
21         if (new_property->next)
22                 throw runtime_exception();
23         new_property->next = list;
24         list = new_property;
25 }
26
27 }  // namespace cln