Skip to content

Commit

Permalink
inline util functions to prevent compilation issues on some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinChu committed Nov 20, 2024
1 parent 65f9d97 commit cd035a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Util {
/*
* checks if file exists
*/
static bool fexists(const string &filename) {
static inline bool fexists(const string &filename) {
ifstream ifile(filename.c_str());
bool good = ifile.good();
ifile.close();
Expand All @@ -29,7 +29,7 @@ static bool fexists(const string &filename) {
/*
* Get resident set size of memory
*/
static size_t getRSS(){ //Note: this value is in KB!
static inline size_t getRSS(){ //Note: this value is in KB!
FILE* file = fopen("/proc/self/status", "r");
int result = -1;
char line[128];
Expand Down

0 comments on commit cd035a3

Please sign in to comment.