mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-20 11:22:05 +00:00
fixup! ast, read_verilog: unify location types, reduce filename copying
This commit is contained in:
parent
81e5270484
commit
ed0582c9f2
3 changed files with 175 additions and 0 deletions
25
frontends/verilog/verilog_error.h
Normal file
25
frontends/verilog/verilog_error.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef VERILOG_ERROR_H
|
||||
#define VERILOG_ERROR_H
|
||||
|
||||
#include "kernel/yosys_common.h"
|
||||
#include "frontends/ast/ast.h"
|
||||
#include "frontends/verilog/verilog_location.h"
|
||||
|
||||
#if ! defined(yyFlexLexerOnce)
|
||||
#define yyFlexLexer frontend_verilog_yyFlexLexer
|
||||
#include <FlexLexer.h>
|
||||
#endif
|
||||
|
||||
YOSYS_NAMESPACE_BEGIN
|
||||
|
||||
namespace VERILOG_FRONTEND
|
||||
{
|
||||
[[noreturn]]
|
||||
void err_at_ast(AST::AstSrcLocType loc, char const *fmt, ...);
|
||||
[[noreturn]]
|
||||
void err_at_loc(location loc, char const *fmt, ...);
|
||||
};
|
||||
|
||||
YOSYS_NAMESPACE_END
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue