summaryrefslogtreecommitdiff
path: root/nqasm.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-18 18:55:22 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-18 18:55:22 -0600
commit619c5cc4ab4bd94f9b270a9868bb5f08ffd76acb (patch)
tree5d58bf4f4cc66621f5327edb30ba593c72b4c5da /nqasm.h
parent17d11b2e0af9cbbe9e2c02c4d1a3d2cb4509701e (diff)
nqasm: allow specifying labels for operands
Diffstat (limited to 'nqasm.h')
-rw-r--r--nqasm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nqasm.h b/nqasm.h
index 232c41b..f2e036d 100644
--- a/nqasm.h
+++ b/nqasm.h
@@ -1,9 +1,14 @@
#ifndef NQ_NQASM_H
#define NQ_NQASM_H
+#define ARG_INTEGER 0
+#define ARG_LABEL 1
+
struct argument {
+ int type;
union {
- int value;
+ long value;
+ char *label;
};
};