Enable assert always in Dali::Vector 39/263739/2
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 9 Sep 2021 05:39:34 +0000 (14:39 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 10 Sep 2021 05:54:31 +0000 (14:54 +0900)
Change-Id: I1bcc79fd84665d4a127f9572e89fa9331542bd86

automated-tests/src/dali/utc-Dali-CircularQueue.cpp
automated-tests/src/dali/utc-Dali-Vector.cpp
dali/public-api/common/dali-vector.h

index 3bf2a26..e5c718c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
@@ -15,8 +15,6 @@
  *
  */
 
-#define ENABLE_VECTOR_ASSERTS
-
 #include <dali-test-suite-utils.h>
 #include <dali/devel-api/common/circular-queue.h>
 #include <dali/public-api/dali-core.h>
index 8c19dc5..815cf69 100644 (file)
@@ -15,8 +15,6 @@
  *
  */
 
-#define ENABLE_VECTOR_ASSERTS
-
 #include <dali-test-suite-utils.h>
 #include <dali/public-api/dali-core.h>
 #include <stdlib.h>
index 22003c5..fd4565e 100644 (file)
 #include <dali/public-api/common/type-traits.h>
 #include <dali/public-api/math/math-utils.h>
 
-/**
- * @brief For DALi internal use, asserts are enabled in debug builds.
- *
- * For Application use, asserts can be enabled manually.
- * @SINCE_1_0.0
- */
-#if defined(DEBUG_ENABLED)
-#define ENABLE_VECTOR_ASSERTS
-#endif
-
-#if defined(ENABLE_VECTOR_ASSERTS)
 #define DALI_ASSERT_VECTOR(cond) DALI_ASSERT_ALWAYS(cond)
-#else
-#define DALI_ASSERT_VECTOR(cond)
-#endif
 
 namespace Dali
 {