mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
Fix compilation issue on Android imported by rebasing
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5TJW9 Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com> Change-Id: Ie30a8e93104fc231ab8ad7731b12a2fd85b58d8f
This commit is contained in:
parent
a3c01cf276
commit
4fba5cac73
@ -143,12 +143,12 @@ private:
|
||||
std::ostringstream stream_;
|
||||
};
|
||||
#elif defined(PANDA_TARGET_ANDROID) // PANDA_TARGET_ANDROID
|
||||
template<Level level, Component component>
|
||||
template<Level level>
|
||||
class PUBLIC_API AndroidLog {
|
||||
public:
|
||||
AndroidLog()
|
||||
{
|
||||
std::string str = Log::GetComponentStr(component);
|
||||
std::string str = "[default] ";
|
||||
stream_ << str;
|
||||
}
|
||||
~AndroidLog();
|
||||
@ -196,7 +196,7 @@ private:
|
||||
#define ARK_LOG(level, component) panda::ecmascript::LOGGABLE_##level && \
|
||||
panda::ecmascript::HiLog<LOG_##level, (component)>()
|
||||
#elif defined(PANDA_TARGET_ANDROID)
|
||||
#define ARK_LOG(level, component) panda::ecmascript::AndroidLog<(level), (component)>()
|
||||
#define ARK_LOG(level, component) panda::ecmascript::AndroidLog<(level)>()
|
||||
#else
|
||||
#define ARK_LOG(level, component) panda::ecmascript::Log::LogIsLoggable(level, component) && \
|
||||
panda::ecmascript::StdLog<(level), (component)>()
|
||||
|
Loading…
Reference in New Issue
Block a user