kennen:include:source_location
no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:include:source_location [2020-06-01 17:02] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== < | ||
+ | |||
+ | ===== Beispiel ===== | ||
+ | |||
+ | TODO: Test ohne experimental, | ||
+ | |||
+ | <code cpp source_location.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | void log(std:: | ||
+ | const std:: | ||
+ | { | ||
+ | std::cout << " | ||
+ | << location.function_name() << ":" | ||
+ | << location.file_name() << ":" | ||
+ | << location.line() << ":" | ||
+ | << location.column() << " " | ||
+ | << message << ' | ||
+ | } | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | log(" | ||
+ | } | ||
+ | </ |
kennen/include/source_location.txt · Zuletzt geändert: 2020-06-01 17:02 von 127.0.0.1