Select Git revision
test_BinaryExpressionProcessor_shift.cpp
-
Stéphane Del Pino authored
The use of the temp dir (/tmp) could be problematic when running several test bases at same time (different builds).
Stéphane Del Pino authoredThe use of the temp dir (/tmp) could be problematic when running several test bases at same time (different builds).
OperatorRepository.cpp 662 B
#include <language/utils/OperatorRepository.hpp>
#include <utils/PugsAssert.hpp>
OperatorRepository* OperatorRepository::m_instance = nullptr;
void
OperatorRepository::reset()
{
m_affectation_builder_list.clear();
m_binary_operator_builder_list.clear();
m_inc_dec_operator_builder_list.clear();
m_unary_operator_builder_list.clear();
}
void
OperatorRepository::create()
{
Assert(m_instance == nullptr, "AffectationRepository was already created");
m_instance = new OperatorRepository;
}
void
OperatorRepository::destroy()
{
Assert(m_instance != nullptr, "AffectationRepository was not created");
delete m_instance;
m_instance = nullptr;
}