eg/jedit/interchange.xml
[interchange.git] / code / OrderCheck / always_fail.oc
1 # Copyright 2006-2007 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.  See the LICENSE file for details.
7
8 # $Id: always_fail.oc,v 1.2 2007-03-30 23:40:48 pajamian Exp $
9
10 CodeDef always_fail OrderCheck 1
11 CodeDef always_fail Description Always fails
12 CodeDef always_fail Routine <<EOR
13 sub {
14         my ($ref, $name, $value, $msg) = @_;
15         return (0, $name, $msg || errmsg('failed'));
16 }
17 EOR