summaryrefslogtreecommitdiffstats
path: root/Smoke/funcs.h
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2007-12-19 20:59:56 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2007-12-19 20:59:56 (GMT)
commit5f1fc7b0711f51dd05077303f854c658ccd9dcba (patch)
tree7d519f704a04a8f25d3e5f14ce809a7d985c4581 /Smoke/funcs.h
parenta60088999da4f44bf5885f431fe78eb87d643ae7 (diff)
download2iv35-5f1fc7b0711f51dd05077303f854c658ccd9dcba.zip
2iv35-5f1fc7b0711f51dd05077303f854c658ccd9dcba.tar.gz
2iv35-5f1fc7b0711f51dd05077303f854c658ccd9dcba.tar.bz2
Loads of splitting, gui templates added for other elements
Diffstat (limited to 'Smoke/funcs.h')
-rw-r--r--Smoke/funcs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Smoke/funcs.h b/Smoke/funcs.h
index dcb8ce4..cfb0000 100644
--- a/Smoke/funcs.h
+++ b/Smoke/funcs.h
@@ -12,6 +12,8 @@
#define round(x) (int)(x < 0 ? x - 0.5 : x + 0.5)
+#define percentage(a, b) (min(a, b) / max(a, b))
+
#define FALSE 0
#define TRUE !FALSE