Alien-SmokeQt
view release on metacpan or search on metacpan
generator/parser/rpp/pp-macro.cpp view on Meta::CPAN
defined == rhs.defined &&
hidden == rhs.hidden &&
function_like == rhs.function_like &&
variadics == rhs.variadics &&
fixed == rhs.fixed &&
definition == rhs.definition &&
formals == rhs.formals;
// listsEqual(rhs);
}
void pp_macro::invalidateHash() {
m_valueHashValid = false;
}
pp_macro::pp_macro(const IndexedString& nm) : name(nm)
, sourceLine(-1)
, defined(true)
, hidden(false)
, function_like(false)
, variadics(false)
, fixed(false)
generator/parser/rpp/pp-macro.h view on Meta::CPAN
HashType valueHash() const {
if( !m_valueHashValid ) computeHash();
return m_valueHash;
}
///Hash that identifies all of this macro, the value and the identity
HashType completeHash() const {
return valueHash() + idHash() * 3777;
}
void invalidateHash();
///Convenient way of setting the definition, it is tokenized automatically
///@param definition utf-8 representation of the definition text
void setDefinitionText(QByteArray definition);
///More convenient overload
void setDefinitionText(QString definition);
void setDefinitionText(const char* definition) {
setDefinitionText(QByteArray(definition));
( run in 0.294 second using v1.01-cache-2.11-cpan-4d50c553e7e )