From fb53df0aa12e6bf91f418a33a8aabe5e1ade3a19 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Thu, 12 May 2022 01:56:47 -0700 Subject: [PATCH] Simplify Export.hh.in, remove comments Signed-off-by: Steve Peters --- cmake/Export.hh.in | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/cmake/Export.hh.in b/cmake/Export.hh.in index 003f6193..a16c0421 100644 --- a/cmake/Export.hh.in +++ b/cmake/Export.hh.in @@ -57,9 +57,6 @@ /// function or class has been deprecated and should no longer be used. A /// version should be specified to provide context to the user about when the /// function became deprecated. - -// NOTE(CH3): GZ_DEPRECATED_ALL_VERSIONS can't be ticktocked, it's generated -// On the bright side, it seems to be private #define GZ_DEPRECATED(version) GZ_DEPRECATED_ALL_VERSIONS #endif @@ -68,28 +65,18 @@ // TODO(CH3): Remove on ticktock, supports defining IGNITION macros if we're // a lib is using GZ_ prefixed export macros #ifndef @_ign_export_base@_VISIBLE -/// For @lib_name@ developers: Apply this macro to @lib_name@ -/// functions and classes which consumers of this library will need to be able -/// to call from their own programs or libraries. -#define @_ign_export_base@_VISIBLE \ - DETAIL_@export_base@_VISIBLE +#define @_ign_export_base@_VISIBLE @export_base@_VISIBLE #endif - #ifndef @_ign_export_base@_HIDDEN -/// For @lib_name@ developers: Apply this macro to @lib_name@ -/// functions and classes which must not be used by consumers of this library. -/// By default, this property is applied to all classes and functions which are -/// not tagged with @_ign_export_base@_VISIBLE, so this does not -/// generally need to be used. -#define @_ign_export_base@_HIDDEN \ - DETAIL_@export_base@_HIDDEN +#define @_ign_export_base@_HIDDEN @export_base@_HIDDEN #endif +#ifndef IGN_DEPRECATED_ALL_VERSIONS +#define IGN_DEPRECATED_ALL_VERSIONS GZ_DEPRECATED_ALL_VERSIONS +#endif #ifndef IGN_DEPRECATED -// TODO(CH3): Remove on ticktock -// NOTE(CH3): This has no docstring since we'll make GZ_DEPRECATED the default #define IGN_DEPRECATED(version) GZ_DEPRECATED_ALL_VERSIONS #endif