mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 18:58:51 +02:00
Add error on illegal --prefix etc. values (#5507).
This commit is contained in:
+1
-1
@@ -490,7 +490,7 @@ void V3PreProcImp::comment(const string& text) {
|
||||
if (VString::startsWith(cmd, "public_flat_rw")) {
|
||||
// "/*verilator public_flat_rw @(foo) */" -> "/*verilator public_flat_rw*/ @(foo)"
|
||||
string::size_type endOfCmd = std::strlen("public_flat_rw");
|
||||
while (VString::isWordChar(cmd[endOfCmd])) ++endOfCmd;
|
||||
while (VString::isIdentifierChar(cmd[endOfCmd])) ++endOfCmd;
|
||||
string baseCmd = cmd.substr(0, endOfCmd);
|
||||
string arg = cmd.substr(endOfCmd);
|
||||
while (std::isspace(arg[0])) arg = arg.substr(1);
|
||||
|
||||
Reference in New Issue
Block a user