aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-07-30 00:09:30 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-07-30 00:17:13 +0100
commit776dc0e8f1aa506ae0096c78ff10565e56c175e7 (patch)
tree946508a869196a3bf1d005e0ddffd182a1786a1d /src/common.cpp
parent32ab8fcf99df786c264ca566799b022c66cca34b (diff)
Restart LLVM IR SSA generation
This is the third go and I'm going for it!
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 5b87639cf..fa99247c3 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -11,6 +11,8 @@ typedef struct String {
#define LIT(x) (x).len, (x).text
+
+
gb_inline String make_string(u8 *text, isize len) {
String s;
s.text = text;
@@ -90,6 +92,9 @@ gb_inline u64 hash_pointer(void *ptr) {
+#define gb_for_array(index_, array_) for (isize index_ = 0; index_ < gb_array_count(array_); index_++)
+
+
// Doubly Linked Lists
#define DLIST_SET(curr_element, next_element) do { \