Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
lib: "this" workaround for C++ includes
Browse files Browse the repository at this point in the history
For example, ivykis uses "this" as a variable name.

Signed-off-by: László Várady <[email protected]>
  • Loading branch information
MrAnno committed Jun 9, 2023
1 parent 3f58b62 commit 3be9783
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/compat/cpp-end.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@

}

#undef this

#endif
2 changes: 2 additions & 0 deletions lib/compat/cpp-start.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@

#ifdef __cplusplus

#define this this_

extern "C" {

#endif

0 comments on commit 3be9783

Please sign in to comment.