From 5f7b41ec7ad79245e90d31363be34585eb730202 Mon Sep 17 00:00:00 2001 From: Amorilia <amorilia@users.sourceforge.net> Date: Sat, 3 Jun 2006 20:05:06 +0000 Subject: [PATCH] Output when fixing links wrapped around DEBUG defines. --- niflib.cpp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/niflib.cpp b/niflib.cpp index 9cc4171a..ba5f9d38 100644 --- a/niflib.cpp +++ b/niflib.cpp @@ -310,19 +310,23 @@ vector<NiObjectRef> ReadNifList( istream & in ) { ReadByte( in ); // this should fail, and trigger the in.eof() flag if ( ! in.eof() ) throw runtime_error("End of file not reached. This NIF may be corrupt or improperly supported."); - - //cout << "Link Stack:" << endl; - //list<uint>::iterator it; - //for ( it = link_stack.begin(); it != link_stack.end(); ++it ) { - // cout << *it << endl; - //} - + +#ifdef DEBUG + cout << "Link Stack:" << endl; + list<uint>::iterator it; + for ( it = link_stack.begin(); it != link_stack.end(); ++it ) { + cout << *it << endl; + } +#endif - //cout << "Fixing Links:" << endl; - ////--Now that all blocks are read, go back and fix the links--// +#ifdef DEBUG + cout << "Fixing Links:" << endl; +#endif + //--Now that all blocks are read, go back and fix the links--// for (uint i = 0; i < blocks.size(); ++i) { - +#ifdef DEBUG cout << blocks[i]->GetType().GetTypeName() << endl; +#endif //Fix links & other pre-processing blocks[i]->FixLinks( blocks, link_stack, version ); } -- GitLab