Core: Added definitions to mark methods as deprecated and marked DoCompleteAchievement as such

This commit is contained in:
Shauren
2011-04-22 13:41:58 +02:00
parent 18c9038ca7
commit 40cb0718c2
2 changed files with 7 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ class InstanceScript : public ZoneScript
void DoSendNotifyToInstance(char const* format, ...);
// Complete Achievement for all players in instance
void DoCompleteAchievement(uint32 achievement);
DECLSPEC_DEPRECATED void DoCompleteAchievement(uint32 achievement) ATTR_DEPRECATED;
// Update Achievement Criteria for all players in instance
void DoUpdateAchievementCriteria(AchievementCriteriaTypes type, uint32 miscValue1 = 0, uint32 miscValue2 = 0, Unit* unit = NULL);
@@ -231,4 +231,3 @@ class InstanceScript : public ZoneScript
uint32 completedEncounters; // completed encounter mask, bit indexes are DungeonEncounter.dbc boss numbers, used for packets
};
#endif

View File

@@ -42,9 +42,13 @@
# ifndef DECLSPEC_NORETURN
# define DECLSPEC_NORETURN __declspec(noreturn)
# endif //DECLSPEC_NORETURN
# ifndef DECLSPEC_DEPRECATED
# define DECLSPEC_DEPRECATED __declspec(deprecated)
# endif //DECLSPEC_DEPRECATED
#else //PLATFORM != PLATFORM_WINDOWS
# define TRINITY_PATH_MAX PATH_MAX
# define DECLSPEC_NORETURN
# define DECLSPEC_DEPRECATED
#endif //PLATFORM
#if !defined(COREDEBUG)
@@ -59,9 +63,11 @@
#if COMPILER == COMPILER_GNU
# define ATTR_NORETURN __attribute__((noreturn))
# define ATTR_PRINTF(F,V) __attribute__ ((format (printf, F, V)))
# define ATTR_DEPRECATED __attribute__((deprecated))
#else //COMPILER != COMPILER_GNU
# define ATTR_NORETURN
# define ATTR_PRINTF(F,V)
# define ATTR_DEPRECATED
#endif //COMPILER == COMPILER_GNU
typedef ACE_INT64 int64;