summaryrefslogtreecommitdiff
path: root/include/c
diff options
context:
space:
mode:
authorelijah-thomas774 <elijahthomas774@gmail.com>2024-03-17 18:55:49 -0400
committerelijah-thomas774 <elijahthomas774@gmail.com>2024-03-17 18:55:49 -0400
commit6ca7763bc02e3307ba782cf6201d16d5386b2906 (patch)
tree6de43ba0736d7377ad4a33068cd1fdc241799629 /include/c
parentde0d7a8e0afee90ee913685d31fc02301d652210 (diff)
change to header guards wooo
Diffstat (limited to 'include/c')
-rw-r--r--include/c/c_list.h5
-rw-r--r--include/c/c_owner_set.h5
-rw-r--r--include/c/c_tree.h6
3 files changed, 13 insertions, 3 deletions
diff --git a/include/c/c_list.h b/include/c/c_list.h
index e693213e..3f958bd2 100644
--- a/include/c/c_list.h
+++ b/include/c/c_list.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef C_LIST_H
+#define C_LIST_H
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/cLib/c_list.hpp
@@ -67,3 +68,5 @@ protected:
cListNd_c *mpFirst; ///< The first node in the list.
cListNd_c *mpLast; ///< The last node in the list.
};
+
+#endif
diff --git a/include/c/c_owner_set.h b/include/c/c_owner_set.h
index 7bba2369..ceb72b5d 100644
--- a/include/c/c_owner_set.h
+++ b/include/c/c_owner_set.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef C_OWNER_SET_H
+#define C_OWNER_SET_H
// This file was ported from
// https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/cLib/c_owner_set.hpp
@@ -59,3 +60,5 @@ private:
cOwnerSetNd_c *mpRoot; ///< The first element of the set.
};
+
+#endif
diff --git a/include/c/c_tree.h b/include/c/c_tree.h
index 22e104c6..58daa267 100644
--- a/include/c/c_tree.h
+++ b/include/c/c_tree.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef C_TREE_H
+#define C_TREE_H
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/cLib/c_tree.hpp
@@ -56,6 +57,7 @@ public:
* @return If the operation was successful.
*/
bool addTreeNode(cTreeNd_c *node, cTreeNd_c *parent);
+ bool insertTreeNode(cTreeNd_c *node, cTreeNd_c *parent);
/**
* @brief Removes a node from the tree.
@@ -72,3 +74,5 @@ public:
protected:
cTreeNd_c *mpRootNode; ///< The root node of the tree.
};
+
+#endif