Skip to content

Commit

Permalink
Updated glue script to work relative to script dir, then regenerated …
Browse files Browse the repository at this point in the history
…single header
  • Loading branch information
Phil Nash committed Jun 28, 2011
1 parent f5c057e commit b5fabcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 77 deletions.
6 changes: 3 additions & 3 deletions glueHeaders.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import sys
import re
from sets import Set

includesParser = re.compile( r'\s*#include\s*"(.*)"' )
guardParser = re.compile( r'\s*#.*_INCLUDED')
defineParser = re.compile( r'\s*#define')
seenHeaders = Set([])
rootPath = '/TwoBlueCubes/Dev/GitHub/Catch/include/'
seenHeaders = set([])
rootPath = os.path.join( os.path.realpath(os.path.dirname(sys.argv[0])), 'include/' )

def parseFile( path, filename ):
f = open( path + filename, 'r' )
Expand Down
74 changes: 0 additions & 74 deletions single_include/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,61 +436,6 @@ namespace Catch



// #included from: catch_descriptor.hpp

/*
* catch_descriptor.hpp
* Catch
*
* Created by Phil on 16/06/2011.
* Copyright 2011 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/

#define TWOBLUECUBES_CATCH_DESCRIPTOR_HPP_INCLUDED

namespace Catch
{

class Descriptor
{
public:
Descriptor()
: Anon( *this )
{
}

Descriptor& Name( const char* name )
{
m_name = name;
return *this;
}
Descriptor& Desc( const char* desc )
{
m_desc = desc;
return *this;
}
Descriptor& Tag( const char* tag )
{
m_tags.push_back( tag );
return *this;
}

Descriptor& Anon;

private:

const char* m_name;
const char* m_desc;
std::vector<const char*> m_tags;
};

}



namespace Catch
{
Expand Down Expand Up @@ -561,13 +506,6 @@ struct AutoReg
std::size_t line
);

AutoReg
( TestFunction function,
const Descriptor& descriptor,
const char* filename,
std::size_t line
);

///////////////////////////////////////////////////////////////////////////
template<typename C>
AutoReg
Expand Down Expand Up @@ -3051,18 +2989,6 @@ namespace Catch
registerTestCase( new FreeFunctionTestCase( function ), name, description, filename, line );
}

///////////////////////////////////////////////////////////////////////////
AutoReg::AutoReg
(
TestFunction function,
const Descriptor& descriptor,
const char* filename,
std::size_t line
)
{
registerTestCase( new FreeFunctionTestCase( function ), "tbd", "tbd", filename, line );
}

///////////////////////////////////////////////////////////////////////////
AutoReg::~AutoReg
()
Expand Down

0 comments on commit b5fabcb

Please sign in to comment.