| line |
true |
false |
branch |
|
5
|
11 |
0 |
xs::register_package(aTHX_ "Panda::Lib::Logger", "Panda::Lib"); |
|
6
|
11 |
0 |
xs::inherit_package(aTHX_ "Panda::Lib::Logger", "Panda::Lib"); |
|
17
|
11 |
0 |
HV* plib_stash = gv_stashpvs("Panda::Lib::Logger", GV_ADD); |
|
18
|
11 |
0 |
create_constants(aTHX_ plib_stash, clist_main); |
|
20
|
11 |
0 |
register_export(aTHX_ plib_stash, "set_log_level"); |
|
21
|
11 |
0 |
register_export(aTHX_ plib_stash, "set_native_logger"); |
|
35
|
0 |
0 |
auto cp_str = cp.to_string(); |
|
36
|
0 |
0 |
SV* args[] = {newSViv(l), newSVpv(cp_str.c_str(), cp_str.size()), newSVpv(s.c_str(), s.size())}; |
|
|
0 |
0 |
SV* args[] = {newSViv(l), newSVpv(cp_str.c_str(), cp_str.size()), newSVpv(s.c_str(), s.size())}; |
|
|
0 |
0 |
SV* args[] = {newSViv(l), newSVpv(cp_str.c_str(), cp_str.size()), newSVpv(s.c_str(), s.size())}; |
|
37
|
0 |
0 |
xs::call_sub_void(aTHX_ cb.get(), args, 3); |
|
40
|
0 |
0 |
auto log = new CatchLogger; |
|
41
|
0 |
0 |
log->cb = cb_ptr; |
|
42
|
0 |
0 |
panda::Log::logger().reset(log); |