Skip to content

Commit

Permalink
Resolve binary compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkoenig committed Mar 1, 2024
1 parent 5a38bcd commit 8cabaf2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/main/scala/chisel3/VerificationStatement.scala
Original file line number Diff line number Diff line change
Expand Up @@ -405,18 +405,16 @@ object stop {
*
* @param message a message describing why simulation was stopped
*/
def apply(message: String)(implicit sourceInfo: SourceInfo): Stop = buildStopCommand(Some(PString(message)))
def apply(message: String = "")(implicit sourceInfo: SourceInfo): Stop = buildStopCommand(
Option.when(message.nonEmpty)(PString(message))
)

/** Terminate execution, indicating success and printing a message.
*
* @param message a printable describing why simulation was stopped
*/
def apply(message: Printable)(implicit sourceInfo: SourceInfo): Stop = buildStopCommand(Some(message))

/** Terminate execution, indicating success.
*/
def apply()(implicit sourceInfo: SourceInfo): Stop = buildStopCommand(None)

/** Named class for [[stop]]s. */
final class Stop private[chisel3] () extends VerificationStatement

Expand Down

0 comments on commit 8cabaf2

Please sign in to comment.