Skip to content

Commit

Permalink
Fixed deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbedward committed Oct 23, 2014
1 parent c3e335a commit af62ad2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.softwaremill.debug

import language.experimental.macros

import reflect.macros.Context
import reflect.macros.blackbox.Context

trait DebugConsole {
/**
Expand Down Expand Up @@ -160,9 +160,9 @@ object DebugConsole extends DebugConsole {
* the debug has been called
*/
private def createPrintPosition =
createPrint(DEBUG_PREFIX +
c.enclosingUnit.source.file.path + " (line " +
c.enclosingPosition.line + ")")
createPrint(DEBUG_PREFIX +
c.internal.enclosingOwner.pos.source.file.path + " (line " +
c.internal.enclosingOwner.pos.line + ")")



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.softwaremill.debug

import language.experimental.macros

import reflect.macros.Context
import reflect.macros.blackbox.Context

trait DebugMacros {
def debug(params: Any*): Unit = macro DebugMacros.debug_impl
Expand Down

0 comments on commit af62ad2

Please sign in to comment.