mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 13:25:27 +00:00
ab27e09b91
Sometimes it is not necessary to include the whole Cutter.h file Hence, it's been splitted so you can include only what you require E.g. #include "core/CutterCommon.h" to have access to the common types
20 lines
343 B
C
20 lines
343 B
C
|
|
#ifndef CUTTER_JSON_H
|
|
#define CUTTER_JSON_H
|
|
|
|
#include "core/Cutter.h"
|
|
|
|
#include <QJsonValue>
|
|
|
|
static inline RVA JsonValueGetRVA(const QJsonValue &value, RVA defaultValue = RVA_INVALID)
|
|
{
|
|
bool ok;
|
|
RVA ret = value.toVariant().toULongLong(&ok);
|
|
if (!ok) {
|
|
return defaultValue;
|
|
}
|
|
return ret;
|
|
}
|
|
|
|
#endif //CUTTER_JSON_H
|