Skip to content

Commit

Permalink
Adding strict R headers (relates to #61)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrechalom committed Sep 18, 2018
1 parent 2f61793 commit 130ac76
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Arena.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#include"Individual.h"
#include"Random.h"

Expand Down
1 change: 1 addition & 0 deletions src/Arena.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#ifndef ARENA_H
#define ARENA_H
#define FACILITATION_NUMPARAMETERS 7
Expand Down
1 change: 1 addition & 0 deletions src/Individual.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS

#include"Individual.h"
#include"Random.h"
Expand Down
1 change: 1 addition & 0 deletions src/Individual.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#ifndef INDIVIDUAL_H
#define INDIVIDUAL_H

Expand Down
1 change: 1 addition & 0 deletions src/Position.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#include"Position.h"

Position operator+(Position lhs, const Position& rhs)
Expand Down
1 change: 1 addition & 0 deletions src/Position.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#ifndef POSITION_H
#define POSITION_H
class Position {
Expand Down
1 change: 1 addition & 0 deletions src/Random.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#include"Random.h"
#include<Rcpp.h>
#include<cmath>
Expand Down
1 change: 1 addition & 0 deletions src/Random.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#include<cstdlib>
#ifndef _RANDOM_MINE
#define _RANDOM_MINE
Expand Down
1 change: 1 addition & 0 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

Expand Down
1 change: 1 addition & 0 deletions src/Species.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#include"Individual.h"
#include"Random.h"
#include<cstdio>
Expand Down
1 change: 1 addition & 0 deletions src/Species.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#ifndef SPECIES_H
#define SPECIES_H

Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define STRICT_R_HEADERS
#include"Individual.h"
#include<iostream>
#include<fstream>
Expand Down

0 comments on commit 130ac76

Please sign in to comment.