-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support of suffixes for preprocessing
- Loading branch information
Showing
5 changed files
with
68 additions
and
8 deletions.
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 @@ | ||
build/* |
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,8 @@ | ||
name = "preprocess_cpp" | ||
|
||
version = "1" | ||
|
||
[preprocess] | ||
[preprocess.cpp] | ||
macros = ["TESTMACRO", "TESTMACRO2=3", "TESTMACRO3={version}"] | ||
suffixes = ["fpp"] |
22 changes: 22 additions & 0 deletions
22
example_packages/preprocess_cpp_suffix/src/preprocess_cpp.fpp
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,22 @@ | ||
module preprocess_cpp | ||
implicit none | ||
private | ||
|
||
public :: say_hello | ||
contains | ||
subroutine say_hello | ||
print *, "Hello, preprocess_cpp!" | ||
#ifndef TESTMACRO | ||
This breaks the build. | ||
#endif | ||
|
||
#if TESTMACRO2 != 3 | ||
This breaks the build. | ||
#endif | ||
|
||
#if TESTMACRO3 != 1 | ||
This breaks the build. | ||
#endif | ||
|
||
end subroutine say_hello | ||
end module preprocess_cpp |
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
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