Skip to content

Commit dce13b8

Browse files
authored
Function interfaces: community feedback (#47)
2 parents 6682997 + e0327c7 commit dce13b8

File tree

5 files changed

+887
-86
lines changed

5 files changed

+887
-86
lines changed

include/common.fypp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,12 @@
1919
#:set RANK_EMPTY = ["0","0,0"]
2020
#:set ALL_RANKS = list(zip(RANK_SYMBOL,RANK_SUFFIX,RANK_EMPTY))
2121

22+
#! Switches for 2 function interfaces: non-pure (with error output); pure (no error output)
23+
#:set FUNCTION_PREFIX = ["pure ",""]
24+
#:set FUNCTION_SUFFIX = ["","_errhandle"]
25+
#:set FUNCTION_ERR_ARG = ["",",err"]
26+
#:set FUNCTION_HAS_ERR = [False,True]
27+
#:set FUNCTION_INTERFACES = list(zip(FUNCTION_PREFIX,FUNCTION_SUFFIX,FUNCTION_ERR_ARG,FUNCTION_HAS_ERR))
28+
29+
2230
#:endmute

0 commit comments

Comments
 (0)