Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
GetArguments.hpp
Go to the documentation of this file.
1 
9 #ifndef __GETARGUMENTS_HPP_
10 #define __GETARGUMENTS_HPP_
11 
12 #ifdef LINK_GFORTRAN
13 
14 #define GETARG__GETARGS _gfortran_getarg_i4
15 
16 #define IARGC__GETARGS _gfortran_iargc
17 #else
18 
19 #define GETARG__GETARGS getarg_
20 
21 #define IARGC__GETARGS iargc_
22 #endif
23 
26 extern "C" int IARGC__GETARGS(void);
29 extern "C" char* GETARG__GETARGS(const int &, char *, int);
30 
32 inline int GetNumberArguments(void) {
33  return IARGC__GETARGS();
34 }
35 
40 inline void GetArgument(int i, char *arg, int length) {
41  GETARG__GETARGS(i, arg, length);
42 }
43 #endif // _GETARGUMENTS_HPP_
#define GETARG__GETARGS
Definition: GetArguments.hpp:19
#define IARGC__GETARGS
Definition: GetArguments.hpp:21
void GetArgument(int i, char *arg, int length)
Definition: GetArguments.hpp:40
int GetNumberArguments(void)
Definition: GetArguments.hpp:32