X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-script-v8%2Fsrc%2Futils%2Fv8-utils.h;h=177360fd1bf1a8caab5b507224a23c8559e7a62c;hp=5a86f39c62c828a67be348326f0f42f905577a5d;hb=b0d0b451bd3414c8f502810f45fcacba2882d717;hpb=6e1c16f82d6ea3d44f74e4dc11212ac18c963ef4 diff --git a/plugins/dali-script-v8/src/utils/v8-utils.h b/plugins/dali-script-v8/src/utils/v8-utils.h index 5a86f39..177360f 100644 --- a/plugins/dali-script-v8/src/utils/v8-utils.h +++ b/plugins/dali-script-v8/src/utils/v8-utils.h @@ -1,8 +1,8 @@ -#ifndef __DALI_V8PLUGIN_V8_UTILS_H__ -#define __DALI_V8PLUGIN_V8_UTILS_H__ +#ifndef DALI_V8PLUGIN_V8_UTILS_H +#define DALI_V8PLUGIN_V8_UTILS_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ enum }; #define DALI_SCRIPT_EXCEPTION( isolate, message ) V8Utils::ScriptError( __FUNCTION__ , isolate, message ); +#define DALI_SCRIPT_WARNING( message ) V8Utils::ScriptWarning( __FUNCTION__ , message ); namespace V8Utils { @@ -146,6 +147,11 @@ std::string GetJavaScriptFunctionName( const char* functionName ); void ScriptError( const char* function, v8::Isolate* isolate, std::string errorString ); /** + * Script warning + */ +void ScriptWarning( const char* function, std::string warningString ); + +/** * @return in the value is a boolean primitive or a boolean object */ bool IsBooleanPrimitiveOrObject( const v8::Local& value ); @@ -377,5 +383,5 @@ void ReadIntegerArguments( bool& foundAllArguments, int* data, int dataSize, con } // namespace Dali -#endif // __DALI_V8PLUGIN_V8_UTILS_H__ +#endif // DALI_V8PLUGIN_V8_UTILS_H