MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / c_adder

Function c_adder

test/core/test_exceptions_resume.cpp:37–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 int result() { return _result; }
36
37 int c_adder(int a, int b)
38 {
39/*_1*/ try {
40/*_2*/ try {
41/*_3*/ try {
42 _result = cpp_adder(a, b);
43/*+3a*/ } catch (MathError& e) {
44 if (string(e.what()).find("not-found-here") == string::npos)
45 throw MathError(string("Special exception caught: ") + typeid(e).name() + ": " + e.what());
46 else
47 throw;
48/*+3b*/ } catch (exception& e) {
49 throw;
50 }
51/*+2*/ } catch (exception& e) {
52 throw;
53 }
54 return 0;
55/*+1*/ } catch (exception& e) {
56 _latest_err_msg = string(typeid(e).name()) + ": " + e.what();
57 return 1;
58 }
59 }
60}
61
62int main() {

Callers 1

mainFunction · 0.85

Calls 6

cpp_adderFunction · 0.85
MathErrorClass · 0.85
stringFunction · 0.50
findMethod · 0.45
whatMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected