ViPERFX_RE/src/shim.cpp

21 lines
476 B
C++
Raw Normal View History

2025-04-02 02:02:51 +02:00
#include <string>
#include <log/log.h>
2025-04-02 02:02:51 +02:00
namespace android::hardware::details {
void check(bool exp) {
ALOGE_IF(!exp, "Check failed");
2025-04-02 02:02:51 +02:00
}
void check(bool exp, const char* message) {
ALOGE_IF(!exp, "%s", message);
2025-04-02 02:02:51 +02:00
}
void logError(const std::string &message) {
ALOGE("%s", message.c_str());
2025-04-02 02:02:51 +02:00
}
void errorWriteLog(int tag, const char* info) {
ALOGE("%d: %s", tag, info);
2025-04-02 02:02:51 +02:00
}
} // namespace android::hardware::details