Add DPL_DEPRECATED macro
authorJihoon Chung <jihoon.chung@samsaung.com>
Wed, 9 Oct 2013 06:36:23 +0000 (15:36 +0900)
committerJihoon Chung <jihoon.chung@samsaung.com>
Wed, 9 Oct 2013 09:06:16 +0000 (18:06 +0900)
commitf352e94ece4b62b1b414a969957df8d2f447ab16
tree191e4a137ce8de52932d9a8138dd1aa8b4c5d5b8
parentfb768d524b5166c9d729cdb1043ecbc56d5850a3
Add DPL_DEPRECATED macro

[Issue#]     N/A
[Problem]    WRT doesn't have any MACRO to show deprecated build warning.
[Cause]      N/A
[Solution]   Add macro for showing build warning. (DPL_DEPRECATED, DPL_DEPRECATED_WITH_MESSAGE(msg))
             - Macro uses gcc attribute
               __attribute__((deprecated)), __attribute__((deprecated("msg")))
               The deprecated attribute results in a warning if the function is used anywhere in the source file.
               This is useful when identifying functions that are expected to be removed in a future version of a program.
               The warning also includes the location of the declaration of the deprecated function,
               to enable users to easily find further information about why the function is deprecated,
               or what they should do instead.
               The deprecated attribute can also be used for variables and types. (Variable Attributes, Type Attributes)
               http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Function-Attributes.html#Function%20Attributes
[SCMRequest] N/A

Change-Id: I2d79d8cacff3593c2bba8ea048d9a4025c6f4994
modules/core/config.cmake
modules/core/include/dpl/availability.h [new file with mode: 0644]