mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
+4
-1
@@ -410,7 +410,8 @@ void EmitCFunc::displayNode(AstNode* nodep, AstScopeName* scopenamep, const stri
|
||||
displayEmit(nodep, isScan);
|
||||
}
|
||||
|
||||
void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPointer) {
|
||||
void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPointer,
|
||||
bool inProcess) {
|
||||
puts("(");
|
||||
bool comma = false;
|
||||
if (nodep->funcp()->isLoose() && !nodep->funcp()->isStatic()) {
|
||||
@@ -422,6 +423,8 @@ void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPoint
|
||||
if (comma) puts(", ");
|
||||
if (VN_IS(nodep->backp(), CAwait) || !nodep->funcp()->isCoroutine()) {
|
||||
puts("vlProcess");
|
||||
} else if (inProcess) {
|
||||
puts("std::make_shared<VlProcess>(vlProcess)");
|
||||
} else {
|
||||
puts("std::make_shared<VlProcess>()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user