xo-expression2: + DConstant utest
This commit is contained in:
parent
9eda9f7894
commit
6dcf43e3ac
4 changed files with 253 additions and 3 deletions
|
|
@ -4,10 +4,12 @@
|
|||
**/
|
||||
|
||||
#include "DConstant.hpp"
|
||||
#include "detail/IExpression_DConstant.hpp"
|
||||
#include "TypeDescr.hpp"
|
||||
#include <xo/object2/DFloat.hpp>
|
||||
#include <xo/object2/DInteger.hpp>
|
||||
#include <xo/facet/FacetRegistry.hpp>
|
||||
#include <xo/facet/obj.hpp>
|
||||
#include <xo/reflect/Reflect.hpp>
|
||||
#include <xo/printable2/Printable.hpp>
|
||||
#include <xo/reflectutil/typeseq.hpp>
|
||||
|
|
@ -38,9 +40,16 @@ namespace xo {
|
|||
}
|
||||
}
|
||||
|
||||
DConstant *
|
||||
obj<AExpression,DConstant>
|
||||
DConstant::make(obj<AAllocator> mm,
|
||||
obj<AGCObject> value)
|
||||
{
|
||||
return obj<AExpression,DConstant>(_make(mm, value));
|
||||
}
|
||||
|
||||
DConstant *
|
||||
DConstant::_make(obj<AAllocator> mm,
|
||||
obj<AGCObject> value)
|
||||
{
|
||||
void * mem = mm.alloc(typeseq::id<DConstant>(),
|
||||
sizeof(DConstant));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue