aboutsummaryrefslogtreecommitdiff
path: root/nusmuk_utils/common.h
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2010-11-08 21:31:44 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2010-11-08 21:31:44 +0000
commitde31babc3eddcbabb47a33dae001777b68abbd30 (patch)
treee5ae71c1b98eb0aa686e4447977c9de511a03216 /nusmuk_utils/common.h
parent8c05d851d65002be3ded378ade825efd2f23a7be (diff)
adding nusmuk_utils lib
svn path=/trunk/externals/nusmuk/; revision=14309
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