Part of #1415.
Change-Id: I360ae1f220b6c51e90edbbe136053fd2e1c0ad5b
#include "gromacs/utility/futil.h"
#include "gpp_atomtype.h"
#include "fflibutil.h"
-#include "macros.h"
#include "gromacs/utility/cstringutil.h"
#include "gromacs/utility/fatalerror.h"
#include "resall.h"
#include "pgutil.h"
#include "network.h"
-#include "macros.h"
static void copy_atom(t_atoms *atoms1, int a1, t_atoms *atoms2, int a2)
{
#include <string.h>
#include "gromacs/utility/smalloc.h"
-#include "macros.h"
#include "topdirs.h"
#include "toputil.h"
#include "topdirs.h"
#include <stdlib.h>
-#include "macros.h"
/* #define DEBUG_NNB */
#include "gpp_nextnb.h"
#include "toputil.h"
* non-bonded parameter combinations, which will be copied to t_params.
*/
+#ifndef __cplusplus
+/*
+ * With the macros below you don't
+ * have to use an index if you don't wan't to. You can eg. use
+ * param.C0 instead of param.c[0].
+ * In a similar fashion, you can use param.AI instead of
+ * param.a[0]
+ *
+ * For C++ those should be replaced with member functions.
+ */
+
+#define AI a[0]
+#define AJ a[1]
+#define AK a[2]
+#define AL a[3]
+#define AM a[4]
+
+#define C0 c[0]
+#define C1 c[1]
+#define C2 c[2]
+#endif
+
typedef struct {
atom_id a[MAXATOMLIST]; /* The atom list (eg. bonds: particle */
/* i = a[0] (AI), j = a[1] (AJ)) */
#include "hackblock.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/math/vec.h"
-#include "macros.h"
/* these MUST correspond to the enum in hackblock.h */
const char *btsNames[ebtsNR] = { "bonds", "angles", "dihedrals", "impropers", "exclusions", "cmap" };
#include "toputil.h"
#include "gromacs/utility/fatalerror.h"
#include "gpp_atomtype.h"
-#include "macros.h"
#include "tomorse.h"
#include <math.h>
#include "physics.h"
-#include "macros.h"
#include "readir.h"
#include "typedefs.h"
#include "topshake.h"
/* no extern "C" for this header because it only defines Macros */
-/*
- * With the macros below you don't
- * have to use an index if you don't wan't to. You can eg. use
- * angle.C0[23] instead if angle.c[0][23].
- * In a similar fashion, you can use angle.AI[3] instead of
- * angle.a[0][3]
- */
#ifndef __cplusplus
#include <stdlib.h>
-#define AI a[0]
-#define AJ a[1]
-#define AK a[2]
-#define AL a[3]
-#define AM a[4]
-#define C0 c[0]
-#define C1 c[1]
-#define C2 c[2]
-
#ifndef min
#define min(a, b) (((a) < (b)) ? (a) : (b) )
#endif