You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
364 B

/**
* @file cs_top_is_question.cpp
*
* @author Guy Maurel
* @license GPL v2+
* extract from combine.cpp
*/
#include "cs_top_is_question.h"
#include "chunk.h"
bool cs_top_is_question(ChunkStack &cs, size_t level)
{
Chunk *pc = cs.Empty() ? Chunk::NullChunkPtr : cs.Top()->m_pc;
return( pc->Is(CT_QUESTION)
&& pc->GetLevel() == level);
}