@@ -9,19 +9,19 @@ import core.Mode
9
9
10
10
object trace {
11
11
12
- @ inline
12
+ @ forceInline
13
13
def onDebug [TD ](question : => String )(op : => TD )(implicit ctx : Context ): TD =
14
14
conditionally(ctx.settings.YdebugTrace .value, question, false )(op)
15
15
16
- @ inline
16
+ @ forceInline
17
17
def conditionally [TC ](cond : Boolean , question : => String , show : Boolean )(op : => TC )(implicit ctx : Context ): TC =
18
18
if (Config .tracingEnabled) {
19
19
def op1 = op
20
20
if (cond) apply[TC ](question, Printers .default, show)(op1)
21
21
else op1
22
22
} else op
23
23
24
- @ inline
24
+ @ forceInline
25
25
def apply [T ](question : => String , printer : Printers .Printer , showOp : Any => String )(op : => T )(implicit ctx : Context ): T =
26
26
if (Config .tracingEnabled) {
27
27
def op1 = op
@@ -30,7 +30,7 @@ object trace {
30
30
}
31
31
else op
32
32
33
- @ inline
33
+ @ forceInline
34
34
def apply [T ](question : => String , printer : Printers .Printer , show : Boolean )(op : => T )(implicit ctx : Context ): T =
35
35
if (Config .tracingEnabled) {
36
36
def op1 = op
@@ -39,15 +39,15 @@ object trace {
39
39
}
40
40
else op
41
41
42
- @ inline
42
+ @ forceInline
43
43
def apply [T ](question : => String , printer : Printers .Printer )(op : => T )(implicit ctx : Context ): T =
44
44
apply[T ](question, printer, false )(op)
45
45
46
- @ inline
46
+ @ forceInline
47
47
def apply [T ](question : => String , show : Boolean )(op : => T )(implicit ctx : Context ): T =
48
48
apply[T ](question, Printers .default, show)(op)
49
49
50
- @ inline
50
+ @ forceInline
51
51
def apply [T ](question : => String )(op : => T )(implicit ctx : Context ): T =
52
52
apply[T ](question, Printers .default, false )(op)
53
53
0 commit comments