Skip to content

Commit

Permalink
Simplify Export.hh.in, remove comments
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters authored and methylDragon committed May 14, 2022
1 parent a8d907f commit fb53df0
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions cmake/Export.hh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit fb53df0

Please sign in to comment.