Skip to content

Commit

Permalink
move an inline function away
Browse files Browse the repository at this point in the history
  • Loading branch information
hfiguiere committed Jun 9, 2007
1 parent c7cbfcf commit 3a5013e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion lib/debug.cpp
@@ -1,7 +1,7 @@
/*
* libopenraw - debug.cpp
*
* Copyright (C) 2006 Hubert Figuiere
* Copyright (C) 2006-2007 Hubert Figuiere
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -34,6 +34,10 @@ namespace Debug {
debugLevel = lvl;
}

void Trace::print(int i)
{
std::cerr << i << " ";
}

Trace & Trace::operator<<(int i)
{
Expand Down
7 changes: 2 additions & 5 deletions lib/debug.h
@@ -1,7 +1,7 @@
/*
* libopenraw - debug.h
*
* Copyright (C) 2006 Hubert Figuiere
* Copyright (C) 2006-2007 Hubert Figuiere
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -52,14 +52,11 @@ namespace Debug {

static void setDebugLevel(debug_level lvl);
private:
static void print(int i);
static int debugLevel; // global debug level
int m_level;
};

inline void print(int i)
{
std::cerr << i << " ";
}

template <class T>
Trace & Trace::operator<<(const std::vector<T> & v)
Expand Down

0 comments on commit 3a5013e

Please sign in to comment.