summaryrefslogtreecommitdiff
path: root/src/Util.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-11 19:54:15 +0000
committeruckelman <uckelman@nomic.net>2010-04-11 19:54:15 +0000
commit9e127046513b0cad9bded2c320b325795b94ad3a (patch)
tree4fbf2705ed909b5e483c51ae75f5b0f436b7acf3 /src/Util.php
parentf214bc73c73c09fa0ae1b2d0d61b78629a587ae9 (diff)
Refactored.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6674 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/Util.php')
-rw-r--r--src/Util.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Util.php b/src/Util.php
new file mode 100644
index 0000000..817e8a1
--- /dev/null
+++ b/src/Util.php
@@ -0,0 +1,7 @@
+<?php
+
+function throw_if_null($arg) {
+ if ($arg === null) throw new Exception('argument is null');
+}
+
+?>