Added 'debug_print()'.

This commit is contained in:
Greg Ward 2000-08-04 01:31:13 +00:00
parent 5db2c3ae24
commit f813e59d49
1 changed files with 5 additions and 0 deletions

View File

@ -783,6 +783,11 @@ class CCompiler:
if self.verbose >= level:
print msg
def debug_print (self, msg):
from distutils.core import DEBUG
if DEBUG:
print msg
def warn (self, msg):
sys.stderr.write ("warning: %s\n" % msg)