patterns: Added base_address
pragma
This commit is contained in:
parent
950598911c
commit
183b8770bb
@ -43,6 +43,14 @@ namespace hex::lang {
|
||||
this->m_recursionLimit = limit;
|
||||
return true;
|
||||
});
|
||||
|
||||
this->m_preprocessor->addPragmaHandler("base_address", [](std::string value) {
|
||||
auto baseAddress = strtoull(value.c_str(), nullptr, 0);
|
||||
|
||||
SharedData::currentProvider->setBaseAddress(baseAddress);
|
||||
return true;
|
||||
});
|
||||
|
||||
this->m_preprocessor->addDefaultPragmaHandlers();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user