Bug 557706 - Allow LogControl printf method to be overridden (r=nnethercote)

if LogControl.printf is made a virtual method then consumers of nanojit can
more easily control how the output is managed.

--HG--
extra : convert_revision : 7fa9ad2e2d57661e4290df0b3902fd809f19d768
This commit is contained in:
Rick Reitmaier 2010-04-07 09:54:30 -07:00
parent 4139494dcc
commit 8e2e572dea

View File

@ -260,7 +260,7 @@ namespace nanojit {
public: public:
// All Nanojit and jstracer printing should be routed through // All Nanojit and jstracer printing should be routed through
// this function. // this function.
void printf( const char* format, ... ) PRINTF_CHECK(2,3); virtual void printf( const char* format, ... ) PRINTF_CHECK(2,3);
// An OR of LC_Bits values, indicating what should be output // An OR of LC_Bits values, indicating what should be output
uint32_t lcbits; uint32_t lcbits;