Files
verilator/src/V3PreShell.h
T

47 lines
1.6 KiB
C++
Raw Permalink Normal View History

2008-06-09 21:25:10 -04:00
// -*- C++ -*-
2006-08-26 11:35:28 +00:00
//*************************************************************************
// DESCRIPTION: Verilator: Preprocessing wrapper program
//
2008-04-25 12:14:27 +00:00
// Code available from: http://www.veripool.org/verilator
2006-08-26 11:35:28 +00:00
//
// AUTHORS: Wilson Snyder with Paul Wasson, Duane Gabli
//
//*************************************************************************
//
2010-01-05 21:15:06 -05:00
// Copyright 2004-2010 by Wilson Snyder. This program is free software; you can
2006-08-26 11:35:28 +00:00
// redistribute it and/or modify it under the terms of either the GNU
// Lesser General Public License Version 3 or the Perl Artistic License
// Version 2.0.
2006-08-26 11:35:28 +00:00
//
// Verilator is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//*************************************************************************
#ifndef _V3PRESHELL_H_
#define _V3PRESHELL_H_ 1
#include "config_build.h"
#include "verilatedos.h"
2006-08-26 11:35:28 +00:00
#include "V3Error.h"
class V3ParseImp;
class V3InFilter;
2008-01-31 14:49:27 +00:00
2006-08-26 11:35:28 +00:00
//============================================================================
class V3PreShell {
// Static class for calling preprocessor
public:
static void boot(char** env);
static void preproc(FileLine* fileline, const string& module, V3InFilter* filterp, V3ParseImp* parsep);
2006-08-26 11:35:28 +00:00
static void preprocInclude(FileLine* fileline, const string& module);
static string dependFiles() { return ""; } // Perl only
2009-12-20 22:26:48 -05:00
static void defineCmdLine(const string& name, const string& value);
2006-08-26 11:35:28 +00:00
static void undef(const string& name);
};
#endif // Guard