We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3697677 commit e44743aCopy full SHA for e44743a
src/common/MiscOps.scala
@@ -75,7 +75,7 @@ trait CGenMiscOps extends CGenEffect {
75
val IR: MiscOpsExp
76
import IR._
77
78
- private def format(s: Exp[Any]): String = {
+ def format(s: Exp[Any]): String = {
79
remap(s.tp) match {
80
case "uint16_t" => "%c"
81
case "bool" | "int8_t" | "int16_t" | "int32_t" => "%d"
@@ -86,7 +86,7 @@ trait CGenMiscOps extends CGenEffect {
86
}
87
88
89
- private def quoteRawString(s: Exp[Any]): String = {
+ def quoteRawString(s: Exp[Any]): String = {
90
91
case "string" => quote(s) + ".c_str()"
92
case _ => quote(s)
0 commit comments