diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 19:54:15 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 19:54:15 +0000 |
commit | 9e127046513b0cad9bded2c320b325795b94ad3a (patch) | |
tree | 4fbf2705ed909b5e483c51ae75f5b0f436b7acf3 /src/Util.php | |
parent | f214bc73c73c09fa0ae1b2d0d61b78629a587ae9 (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.php | 7 |
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'); +} + +?> |