This repository has been archived by the owner on Jun 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scope_guard: fix silly mistake in ON_SCOPE_EXIT.
The previous implementation worked when used once per function, which happened to be enough to pass the tests. Macro token pasting is now fixed.
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef _ETL_CONCATENATE_H_INCLUDED | ||
#define _ETL_CONCATENATE_H_INCLUDED | ||
|
||
/* | ||
* A macro for concatenating text tokens. Doing this is surprisingly involved | ||
* with the C preprocessor. | ||
*/ | ||
#define ETL_CONCATENATE(a, b) _ETL_CONCATENATE(a, b) | ||
#define _ETL_CONCATENATE(a, b) a ## b | ||
|
||
#endif // _ETL_CONCATENATE_H_INCLUDED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters