summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Process
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-03-14 03:49:09 +0000
committerfukachan <fukachan>2003-03-14 03:49:09 +0000
commitc5137d358f7728ebde5cea050b40e4659999a24a (patch)
treeae96cebda9ee08b228153d0e35a149be677c5d0a /fml/lib/FML/Process
parentf528047892c9d4f5f95319d9cca39e8768e5579a (diff)
downloadfml8-c5137d358f7728ebde5cea050b40e4659999a24a.tar.gz
fml8-c5137d358f7728ebde5cea050b40e4659999a24a.tar.bz2
fml8-c5137d358f7728ebde5cea050b40e4659999a24a.zip
imlement debug_level()
Diffstat (limited to 'fml/lib/FML/Process')
-rw-r--r--fml/lib/FML/Process/Utils.pm22
1 files changed, 21 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm
index 09dee4df..09c23866 100644
--- a/fml/lib/FML/Process/Utils.pm
+++ b/fml/lib/FML/Process/Utils.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Utils.pm,v 1.61 2003/02/20 04:32:50 fukachan Exp $
+# $FML: Utils.pm,v 1.62 2003/03/06 14:13:28 fukachan Exp $
#
package FML::Process::Utils;
@@ -1289,6 +1289,26 @@ sub hints
}
+=head2 debug_level()
+
+return debug level.
+
+=cut
+
+
+# Descriptions: return debug level.
+# Arguments: OBJ($curproc)
+# Side Effects: none
+# Return Value: NUM
+sub debug_level
+{
+ my ($curproc) = @_;
+ my $args = $curproc->{ __parent_args };
+
+ return( $args->{ main_cf }->{ debug } || 0 );
+}
+
+
=head1 CODING STYLE
See C<http://www.fml.org/software/FNF/> on fml coding style guide.