]> www.ginac.de Git - cln.git/blob - cl_pl_add.cc
3de5272acbf9d3759ca85227b63d066730d2b40c
[cln.git] / 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/abort.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                 cl_abort();
23         new_property->next = list;
24         list = new_property;
25 }
26
27 }  // namespace cln