aboutsummaryrefslogtreecommitdiff
path: root/nusmuk-utils/common.h
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2010-11-10 16:29:05 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2010-11-10 16:29:05 +0000
commitb06e377d1aba31ff8ef27732335a7ccd6610b387 (patch)
tree90507969582e24f01039dd99dbe5419ff687aef7 /nusmuk-utils/common.h
parent65f8dbf20dcc77f1a6e12271345d1806516fdfa2 (diff)
svn path=/trunk/externals/nusmuk/; revision=14370
Diffstat (limited to 'nusmuk-utils/common.h')
-rw-r--r--nusmuk-utils/common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/nusmuk-utils/common.h b/nusmuk-utils/common.h
new file mode 100644
index 0000000..3f4a1c8
--- /dev/null
+++ b/nusmuk-utils/common.h
@@ -0,0 +1,17 @@
+/* common.h -- those things we define often */
+
+#define InRange(v,lo,hi) ((v)<=(hi)&&(v)>=(lo))
+#define MAXIUM(a,b) ((a)>(b)?(a):(b))
+#define MINIUM(a,b) ((a)<(b)?(a):(b))
+
+#define RetKey 13
+#define EnterKey 3
+#define SpaceBar 32
+#define BackSpace 8
+#define BackSlash 0x5C
+#define VertBar 0x7C
+#define Grave 0x60
+#define Tilde 0x7E
+#define TabKey 9
+#define ClearKey 27
+#define OptionSpace 202