Swift has #file, #function, #line and #column. From Swift Programming Language:
#file – String – The name of the file in which it appears.
#line – Int – The line number on which it appears.
#column – Int – The column number in which it begins.
#function – String – The name of the declaration in which it appears.