We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dda1b41 commit 92021f3Copy full SHA for 92021f3
1 file changed
include/pybind11/detail/type_caster_odr_guard.h
@@ -51,6 +51,12 @@ inline unsigned &type_caster_odr_violation_detected_counter() {
51
return counter;
52
}
53
54
+inline bool try_builtin_file_line() {
55
+ const char *file = __builtin_FILE();
56
+ unsigned line = __builtin_LINE();
57
+ return file != nullptr && line != 0; // Just something.
58
+}
59
+
60
inline const char *source_file_line_basename(const char *sfl) {
61
unsigned i_base = 0;
62
for (unsigned i = 0; sfl[i] != '\0'; i++) {
0 commit comments