mirror of
https://github.com/hazemKrimi/jack-vm-translator.git
synced 2026-05-01 18:00:27 +00:00
chore: prevent duplicate definitions
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#ifndef TYPES
|
||||
|
||||
enum class CommandType {
|
||||
ADD,
|
||||
SUB,
|
||||
@@ -48,3 +50,6 @@ typedef struct {
|
||||
SegmentType segment;
|
||||
int index;
|
||||
} Command;
|
||||
|
||||
#define TYPES
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user