@@ -9,19 +9,19 @@ import core.Mode
99
1010object trace {
1111
12- @ inline
12+ @ forceInline
1313 def onDebug [TD ](question : => String )(op : => TD )(implicit ctx : Context ): TD =
1414 conditionally(ctx.settings.YdebugTrace .value, question, false )(op)
1515
16- @ inline
16+ @ forceInline
1717 def conditionally [TC ](cond : Boolean , question : => String , show : Boolean )(op : => TC )(implicit ctx : Context ): TC =
1818 if (Config .tracingEnabled) {
1919 def op1 = op
2020 if (cond) apply[TC ](question, Printers .default, show)(op1)
2121 else op1
2222 } else op
2323
24- @ inline
24+ @ forceInline
2525 def apply [T ](question : => String , printer : Printers .Printer , showOp : Any => String )(op : => T )(implicit ctx : Context ): T =
2626 if (Config .tracingEnabled) {
2727 def op1 = op
@@ -30,7 +30,7 @@ object trace {
3030 }
3131 else op
3232
33- @ inline
33+ @ forceInline
3434 def apply [T ](question : => String , printer : Printers .Printer , show : Boolean )(op : => T )(implicit ctx : Context ): T =
3535 if (Config .tracingEnabled) {
3636 def op1 = op
@@ -39,15 +39,15 @@ object trace {
3939 }
4040 else op
4141
42- @ inline
42+ @ forceInline
4343 def apply [T ](question : => String , printer : Printers .Printer )(op : => T )(implicit ctx : Context ): T =
4444 apply[T ](question, printer, false )(op)
4545
46- @ inline
46+ @ forceInline
4747 def apply [T ](question : => String , show : Boolean )(op : => T )(implicit ctx : Context ): T =
4848 apply[T ](question, Printers .default, show)(op)
4949
50- @ inline
50+ @ forceInline
5151 def apply [T ](question : => String )(op : => T )(implicit ctx : Context ): T =
5252 apply[T ](question, Printers .default, false )(op)
5353
0 commit comments