Export math functions to Wasm components
This commit is contained in:
@@ -149,6 +149,7 @@ StringList cli_demo_error_markers()
|
|||||||
markers.push_back(String("uce compile ") + "error");
|
markers.push_back(String("uce compile ") + "error");
|
||||||
markers.push_back(String("fatal signal during ") + "request");
|
markers.push_back(String("fatal signal during ") + "request");
|
||||||
markers.push_back(String("uncaught exception during ") + "request");
|
markers.push_back(String("uncaught exception during ") + "request");
|
||||||
|
markers.push_back("component not found");
|
||||||
return(markers);
|
return(markers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -450,6 +450,10 @@ extern "C" void uce_wasm_link_anchors()
|
|||||||
(void*)&isdigit, (void*)&isgraph, (void*)&islower, (void*)&isprint,
|
(void*)&isdigit, (void*)&isgraph, (void*)&islower, (void*)&isprint,
|
||||||
(void*)&ispunct, (void*)&isspace, (void*)&isupper, (void*)&isxdigit,
|
(void*)&ispunct, (void*)&isspace, (void*)&isupper, (void*)&isxdigit,
|
||||||
(void*)&tolower, (void*)&toupper,
|
(void*)&tolower, (void*)&toupper,
|
||||||
|
// math functions used by side modules but not otherwise retained by core
|
||||||
|
(void*)(double (*)(double))&cos,
|
||||||
|
(void*)(double (*)(double))&sin,
|
||||||
|
(void*)(double (*)(double))&round,
|
||||||
};
|
};
|
||||||
(void)libc_anchors;
|
(void)libc_anchors;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,3 +33,6 @@ isupper
|
|||||||
isxdigit
|
isxdigit
|
||||||
tolower
|
tolower
|
||||||
toupper
|
toupper
|
||||||
|
cos
|
||||||
|
sin
|
||||||
|
round
|
||||||
|
|||||||
Reference in New Issue
Block a user