📄 oaverilogerror.cpp
字号:
// *****************************************************************************// *****************************************************************************// oaVerilogError.cpp//// This file contains the member functions specific to the Error class.//// *****************************************************************************// Except as specified in the OpenAccess terms of use of Cadence or Silicon// Integration Initiative, this material may not be copied, modified,// re-published, uploaded, executed, or distributed in any way, in any medium,// in whole or in part, without prior written permission from Cadence.//// Copyright 2002-2005 Cadence Design Systems, Inc.// All Rights Reserved.//// $Author: sailajad $// $Revision: 1.18 $// $Date: 2005/07/17 21:07:32 $// $State: Exp $// *****************************************************************************// *****************************************************************************#include "oaVerilogInPvt.h"BEGIN_VERILOG_NAMESPACE// *****************************************************************************// Error::Error()//// This constructor for the Error object. If a pointer to a scanner// is given object it prefixes the error message with file and line number // information from the scanner.// *****************************************************************************Error::Error(oaUInt4 msgIdIn, const Scanner *scanner, ...): oaException(msgIdIn), fmt(1024){ if (scanner && scanner->getCurrentFileName() != NULL && scanner->getCurrentLineNumber() != oacNullIndex) { fmt.format("(%s: %d): ", scanner->getCurrentFileName(), scanner->getCurrentLineNumber()); } else { fmt = ""; } fmt += Msgs[msgId - oavVerilogMsgIdStartValue]; va_list args; va_start(args, scanner); format(args); va_end(args);}// *****************************************************************************// Error::getFormatString()//// This function returns the appropriate formatting string for this exception.// *****************************************************************************const oaString&Error::getFormatString() const{ return fmt;}END_VERILOG_NAMESPACE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -