Skip to content

Commit

Permalink
Drop an unworking Macro
Browse files Browse the repository at this point in the history
Closes #327
  • Loading branch information
Gregory Mullen (grayhatter) committed Dec 15, 2016
1 parent 68be338 commit 4dccd66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
9 changes: 1 addition & 8 deletions toxcore/tox.api.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const VERSION_PATCH = 0;

/**
* A macro to check at preprocessing time whether the client code is compatible
* with the installed version of Tox. Leading zeros in the version number are
* with the installed version of Tox. Leading zeros in the version number are
* ignored. E.g. 0.1.5 is to 0.1.4 what 1.5 is to 1.4, that is: it can add new
* features, but can't break the API.
*/
Expand All @@ -202,13 +202,6 @@ const VERSION_PATCH = 0;
) \
)

/**
* A macro to make compilation fail if the client code is not compatible with
* the installed version of Tox.
*/
#define TOX_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \
typedef char tox_required_version[TOX_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1]

static namespace version {

/**
Expand Down
7 changes: 0 additions & 7 deletions toxcore/tox.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,6 @@ uint32_t tox_version_patch(void);
) \
)

/**
* A macro to make compilation fail if the client code is not compatible with
* the installed version of Tox.
*/
#define TOX_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \
typedef char tox_required_version[TOX_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1]

/**
* Return whether the compiled library version is compatible with the passed
* version numbers.
Expand Down

1 comment on commit 4dccd66

@iphydf
Copy link
Member

@iphydf iphydf commented on 4dccd66 Dec 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: The "unworking macro" is TOX_VERSION_REQUIRE.

Please sign in to comment.