aboutsummaryrefslogtreecommitdiff
path: root/common/rational.h
diff options
context:
space:
mode:
authorMatthew Hoops2010-09-06 14:59:13 +0000
committerMatthew Hoops2010-09-06 14:59:13 +0000
commitdf7158c0ee9cd6fde0183b2841d1c918f5c8ab7b (patch)
tree32ad64ca646aee37240bee6f06cb27e37860cf69 /common/rational.h
parent6eecc485d2728e2a314d52a6adc385a23908d30f (diff)
downloadscummvm-rg350-df7158c0ee9cd6fde0183b2841d1c918f5c8ab7b.tar.gz
scummvm-rg350-df7158c0ee9cd6fde0183b2841d1c918f5c8ab7b.tar.bz2
scummvm-rg350-df7158c0ee9cd6fde0183b2841d1c918f5c8ab7b.zip
COMMON: Add a debugPrint function to Rational
svn-id: r52593
Diffstat (limited to 'common/rational.h')
-rw-r--r--common/rational.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/rational.h b/common/rational.h
index 5ceac36209..5826839ac6 100644
--- a/common/rational.h
+++ b/common/rational.h
@@ -86,6 +86,8 @@ public:
double toDouble() const;
frac_t toFrac() const;
+ void debugPrint(int debuglevel = 0, const char *caption = "Rational:") const;
+
private:
int _num;
int _denom;