Debian Codegraph @

src/cpp_assertions.cpp

raw symbols SCIP
1 #cxx . . $ `<file>/src/cpp_assertions.cpp`/include <cgreen/internal/cpp_assertions.h>cxx . . $ `<file>/include/cgreen/internal/cpp_assertions.h`/
2 #include <cgreen/internal/c_assertions.h>cxx . . $ `<file>/include/cgreen/internal/c_assertions.h`/
3 #include <cgreen/constraint.h>cxx . . $ `<file>/include/cgreen/constraint.h`/
4 #include <stdint.h>
5 #include <string.h>
6 #include <string>
7
8
9 #include "constraint_internal.h"cxx . . $ `<file>/src/constraint_internal.h`/
10
11 namespace cgreencxx . . $ cgreen/ {
12
13 void assert_that_cxx . . $ cgreen/assert_that_(7e860a4f442fe6d4).(const char *file, int line, const char *actual_string,
14 intptr_tcxx . . $ intptr_t# actual, Constraintcxx . . $ Constraint#* constraint) {
15 assert_core_(file, line, actual_string, actual, constraint);
16 }
17
18 void assert_that_cxx . . $ cgreen/assert_that_(12bd53f56e56b98f).(const char *file, int line, const char *actual_string,
19 double actual, Constraintcxx . . $ Constraint#* constraint) {
20 assert_that_double_(file, line, actual_string, actual, constraint);
21 }
22
23 void assert_that_cxx . . $ cgreen/assert_that_(d22aeaa8b8cc4878).(const char *file, int line, const char *actual_string,
24 const std::stringcxx . . $ std/string#& actual, Constraintcxx . . $ Constraint#* constraint) {
25
26 // if they are using a string constraint, they are almost certainly meaning to do a deep comparison
27 if (is_string_comparing(constraint)) {
28 assert_core_(file, line, actual_string, (intptr_tcxx . . $ intptr_t#) (actual.c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()),
29 constraint);
30 return;
31 }
32
33 assert_that_cxx . . $ cgreen/assert_that_(f6dfb0fbfaeb176a).(file, line, actual_string, (const std::stringcxx . . $ std/string# *) (&actual), constraint);
34 }
35
36 void assert_that_cxx . . $ cgreen/assert_that_(f6dfb0fbfaeb176a).(const char *file, int line, const char *actual_string,
37 const std::stringcxx . . $ std/string# *actual, Constraintcxx . . $ Constraint#* constraint) {
38
39 // if they are using a string constraint, they are almost certainly meaning to do a deep comparison
40 if (is_string_comparing(constraint)) {
41 assert_core_(file, line, actual_string, (intptr_tcxx . . $ intptr_t#) (actual->c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()),
42 constraint);
43 return;
44 }
45
46 assert_core_(file, line, actual_string, (intptr_tcxx . . $ intptr_t#) actual, constraint);
47 }
48
49 }