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 <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
#ifndef TYPES
|
||||||
|
|
||||||
enum class CommandType {
|
enum class CommandType {
|
||||||
ADD,
|
ADD,
|
||||||
SUB,
|
SUB,
|
||||||
@@ -48,3 +50,6 @@ typedef struct {
|
|||||||
SegmentType segment;
|
SegmentType segment;
|
||||||
int index;
|
int index;
|
||||||
} Command;
|
} Command;
|
||||||
|
|
||||||
|
#define TYPES
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user