Browse Source

prototype: just comments and prints

heck-rework
heck 3 years ago
parent
commit
7e5d39f28b
  1. 12
      test/test_nr1.cc

12
test/test_nr1.cc

@ -82,7 +82,7 @@ namespace pEp {
}
if (_is_initialized) {
throw Exception{ EXSTR("double initialization") };
throw Exception{ EXSTR("can only bind once") };
}
// init
_pod_p = pod_p;
@ -195,7 +195,7 @@ namespace pEp {
}
if (_is_bound) {
throw Exception{ EXSTR("double initialization") };
throw Exception{ EXSTR("can only be bound once") };
}
// init
@ -468,7 +468,7 @@ namespace pEp {
}
if (_is_bound) {
throw Exception{ EXSTR("double initialization") };
throw Exception{ EXSTR("can only bind once") };
}
// init
@ -536,7 +536,7 @@ namespace pEp {
//
// alloc/free:
// the alloc() and free() functions HAVE to use calloc/malloc NOT 'new', because we are interfacing
// c99 code, that could possible get ownership of the struct and can only free memory that has
// c99 code that could possibly get ownership of the struct and can only free memory that has
// been allocated using malloc/calloc. (malloc/free - new/delete are NOT compatible)
class TestStruct1 : public PODStruct<::Test_struct1> {
public:
@ -582,7 +582,7 @@ int main()
std::is_pod<::Test_struct1>::value && !std::is_pointer<::Test_struct1>::value,
"not an integral");
pEp::Utils::readKey();
// pEp::Utils::readKey();
pEp::Adapter::pEpLog::set_enabled(true);
// POD
@ -682,7 +682,7 @@ int main()
// Struct
if (1) {
// create an instance
if (0) {
if (1) {
pEp::TestStruct1 pstruct1{ true };
// pEp::TestStruct1 pstruct1(true, 23, TWO, "pEp");
pEpLog(pstruct1.c_int);

Loading…
Cancel
Save