Skip to content

Commit

Permalink
fixed FreeEnumMembers
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Colvin committed Jul 8, 2014
1 parent da2a8f0 commit 76bb917
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 6 additions & 6 deletions clFFT.d
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mixin template FreeEnumMembers(T)
string s;
foreach(member; __traits(allMembers, T))
{
s ~= "enum T " ~ member ~ " = T." ~ member ~ ",\n";
s ~= "enum T " ~ member ~ " = T." ~ member ~ ";\n";
}
return s;
}());
Expand Down Expand Up @@ -108,7 +108,7 @@ enum clfftLayout
CLFFT_REAL, /*!< An array of real numbers, with no corresponding imaginary components. */
ENDLAYOUT /*!< This value will always be last, and marks the length of clfftLayout. */
}
mixin AnonymousEnum!clfftLayout;
mixin FreeEnumMembers!clfftLayout;

/*! @brief This is the expected precision of each FFT.
*/
Expand All @@ -122,7 +122,7 @@ enum clfftPrecision
CLFFT_DOUBLE_FAST, /*!< Faster implementation preferred. */
ENDPRECISION /*!< This value will always be last, and marks the length of clfftPrecision. */
}
mixin AnonymousEnum!clfftPrecision;
mixin FreeEnumMembers!clfftPrecision;

/*! @brief What is the expected direction of each FFT, time or the frequency domains */
enum clfftDirection
Expand All @@ -133,7 +133,7 @@ enum clfftDirection
CLFFT_PLUS = 1, /*!< Alias for the backward transform. */
ENDDIRECTION /*!< This value will always be last, and marks the length of clfftDirection. */
}
mixin AnonymousEnum!clfftDirection;
mixin FreeEnumMembers!clfftDirection;

/*! @brief Are the input buffers overwritten with the results */
enum clfftResultLocation
Expand All @@ -142,7 +142,7 @@ enum clfftResultLocation
CLFFT_OUTOFPLACE, /*!< Seperate input and output buffers. */
ENDPLACE /*!< This value will always be last, and marks the length of clfftPlaceness. */
}
mixin AnonymousEnum!clfftResultLocation;
mixin FreeEnumMembers!clfftResultLocation;

/*! @brief This determines whether the result is returned in original order. It is valid only
for
Expand All @@ -155,7 +155,7 @@ enum clfftResultTransposed {
ENDTRANSPOSED /*!< This value will always be last, and marks the length of
clfftResultTransposed */
}
mixin AnonymousEnum!clfftResultTransposed;
mixin FreeEnumMembers!clfftResultTransposed;

/*! BitMasks to be used with clfftSetupData.debugFlags */
enum CLFFT_DUMP_PROGRAMS = 0x1;
Expand Down
3 changes: 3 additions & 0 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

"targetType": "sourceLibrary",
"sourcePaths": ["."],
"importPaths": ["."],

"libs": ["clFFT"],

"dependencies": {
"derelict_extras-opencl": ">=1.2.0"
Expand Down

0 comments on commit 76bb917

Please sign in to comment.