};
#define DALI_SCRIPT_EXCEPTION( isolate, message ) V8Utils::ScriptError( __FUNCTION__ , isolate, message );
+#define DALI_SCRIPT_WARNING( message ) V8Utils::ScriptWarning( __FUNCTION__ , message );
namespace V8Utils
{
void GetModuleName( const std::string& fileName, std::string& moduleName );
/**
+ * Compare whether two DALi property maps are identical
+ * @param[in] map1 The first property map to be compared
+ * @param[in] map2 The second property map to be compared
+ * @return true if the two specified property maps are identical or false if not.
+ */
+bool IsPropertyMapIdentical(Property::Map map1, Property::Map map2);
+
+/**
* Report an exception by writing as a warning to the Dali Log
*
* @param[in] try_catch The v8 TryCatch exception object
std::string PropertyNameToJavaScriptName(const std::string& hyphenatedName);
/**
- * Convert camelCase to hyphenated to (Wrapper property name to Dali property)
- * E.g. anchorPoint to "anchor-point"
- * @param[in] camelCase a std::string camelCase
- * @return a hyphenated std::string conversion
+ * Script error, throws an exception
*/
- std::string JavaScriptNameToPropertyName(const std::string& camelCase);
+void ScriptError( const char* function, v8::Isolate* isolate, std::string errorString );
/**
- * Script error, throws an exception
+ * Script warning
*/
-void ScriptError( const char* function, v8::Isolate* isolate, std::string errorString );
+void ScriptWarning( const char* function, std::string warningString );
/**
* @return in the value is a boolean primitive or a boolean object