Compiles again
[lispp.git] / LispCons.h
blob2c2f7b0df5efb9c1d12cbab35249d4df5d4baf9b
1 #if !defined(H_LISPCONS)
2 #define H_LISPCONS
4 #include "LispNil.h"
5 #include <utility>
7 namespace Lisp
10 struct Cons : public LispObj
13 void make(const PointerType& car, const PointerType& cdr)
15 object.tag.setType(eConsObj);
16 object.values.resize(2);
17 object.values[0] = LispValue(car);
18 object.values[1] = LispValue(cdr);
21 PointerType car() const
23 return object.values[0];
27 PointerType cdr() const
29 return object.values[1];
36 #endif