Add header guards to tracerv code

This commit is contained in:
abejgonzalez 2023-08-25 11:54:23 -07:00
parent 157bd9facb
commit 9087a0671c
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,6 @@
#ifndef __TRACE_TRACKER_H
#define __TRACE_TRACKER_H
#include "tracerv_processing.h"
//#define INDENT_SPACES
@ -58,3 +61,5 @@ public:
TraceTracker(std::string binary_with_dwarf, FILE *tracefile);
void addInstruction(uint64_t inst_addr, uint64_t cycle);
};
#endif // __TRACE_TRACKER_H

View File

@ -1,5 +1,5 @@
#ifndef TRACERV_PROCESSING_GUARD
#define TRACERV_PROCESSING_GUARD
#ifndef __TRACERV_PROCESSING_H
#define __TRACERV_PROCESSING_H
#include <inttypes.h>
#include <string>
@ -43,4 +43,4 @@ public:
Instr *getInstrFromAddr(uint64_t lookupaddress);
};
#endif
#endif // __TRACERV_PROCESSING_H