extern "C" { #include #include } #include namespace Poincare { ListData::ListData(Expression * operand) : m_numberOfOperands(1), m_operands(new Expression*[1]) { assert(operand != nullptr); m_operands[0] = operand; } ListData::~ListData() { for (int i=0; i= 0); assert(i < m_numberOfOperands); return m_operands[i]; } void ListData::detachOperands() { for (int i = 0; i < m_numberOfOperands; i++) { m_operands[i] = nullptr; } } }