@ayubsayyad/

HoneydewKnobbyEvents

C++

No description

fork
loading
Files
  • main.cpp
  • a.out
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include <string_view>
#include <experimental/source_location>
 
void log(const std::string_view& message, const std::experimental::source_location& location = std::experimental::source_location::current())
{
    std::cout << "info:"
              << location.file_name() << ":"
              << location.line() << " "
              << message << '\n';
}
 
int main()
{
  
    log("Hello world!");
}