Files
verilator/src/V3PreShell.h
T

48 lines
1.7 KiB
C++
Raw Normal View History

// -*- mode: C++; c-file-style: "cc-mode" -*-
2006-08-26 11:35:28 +00:00
//*************************************************************************
// DESCRIPTION: Verilator: Preprocessing wrapper program
//
2019-11-07 22:33:59 -05:00
// Code available from: https://verilator.org
2006-08-26 11:35:28 +00:00
//
//*************************************************************************
//
// This program is free software; you can 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.
// SPDX-FileCopyrightText: 2004-2026 Wilson Snyder
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
2006-08-26 11:35:28 +00:00
//
//*************************************************************************
#ifndef VERILATOR_V3PRESHELL_H_
#define VERILATOR_V3PRESHELL_H_
2006-08-26 11:35:28 +00:00
#include "config_build.h"
#include "verilatedos.h"
2006-08-26 11:35:28 +00:00
#include "V3Error.h"
#include "V3FileLine.h"
2006-08-26 11:35:28 +00:00
class V3ParseImp;
class VInFilter;
2019-07-13 20:30:32 -04:00
class VSpellCheck;
2008-01-31 14:49:27 +00:00
2006-08-26 11:35:28 +00:00
//============================================================================
class V3PreShell final {
2006-08-26 11:35:28 +00:00
// Static class for calling preprocessor
public:
static void boot() VL_MT_DISABLED;
static void shutdown() VL_MT_DISABLED;
static bool preproc(FileLine* fl, const string& modname, VInFilter* filterp,
V3ParseImp* parsep, const string& errmsg) VL_MT_DISABLED;
static void preprocInclude(FileLine* fl, const string& modname) VL_MT_DISABLED;
static void defineCmdLine(const string& name, const string& value) VL_MT_DISABLED;
static void undef(const string& name) VL_MT_DISABLED;
static void dumpDefines(std::ostream& os) VL_MT_DISABLED;
static void candidateDefines(VSpellCheck* spellerp) VL_MT_DISABLED;
static void selfTest() VL_MT_DISABLED;
2006-08-26 11:35:28 +00:00
};
#endif // Guard