@@ -53,7 +53,7 @@ wasm_engine_t *engine() {
53
53
54
54
class Wamr : public WasmVm {
55
55
public:
56
- Wamr () {}
56
+ Wamr () {}
57
57
58
58
std::string_view runtime () override { return " webassembly micro runtime" ; }
59
59
std::string_view getPrecompiledSectionName () override { return " " ; }
@@ -557,9 +557,8 @@ template <typename T> WasmFunctypePtr newWasmNewFuncType() {
557
557
}
558
558
559
559
template <typename ... Args>
560
- void Wamr::registerHostFunctionImpl (std::string_view module_name,
561
- std::string_view function_name,
562
- void (*function)(void *, Args...)) {
560
+ void Wamr::registerHostFunctionImpl (std::string_view module_name, std::string_view function_name,
561
+ void (*function)(void *, Args...)) {
563
562
auto data =
564
563
std::make_unique<HostFuncData>(std::string (module_name) + " ." + std::string (function_name));
565
564
@@ -591,9 +590,8 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name,
591
590
};
592
591
593
592
template <typename R, typename ... Args>
594
- void Wamr::registerHostFunctionImpl (std::string_view module_name,
595
- std::string_view function_name,
596
- R (*function)(void *, Args...)) {
593
+ void Wamr::registerHostFunctionImpl (std::string_view module_name, std::string_view function_name,
594
+ R (*function)(void *, Args...)) {
597
595
auto data =
598
596
std::make_unique<HostFuncData>(std::string (module_name) + " ." + std::string (function_name));
599
597
WasmFunctypePtr type = newWasmNewFuncType<R, std::tuple<Args...>>();
@@ -627,7 +625,7 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name,
627
625
628
626
template <typename ... Args>
629
627
void Wamr::getModuleFunctionImpl (std::string_view function_name,
630
- std::function<void (ContextBase *, Args...)> *function) {
628
+ std::function<void (ContextBase *, Args...)> *function) {
631
629
632
630
auto it = module_functions_.find (std::string (function_name));
633
631
if (it == module_functions_.end ()) {
@@ -675,7 +673,7 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name,
675
673
676
674
template <typename R, typename ... Args>
677
675
void Wamr::getModuleFunctionImpl (std::string_view function_name,
678
- std::function<R (ContextBase *, Args...)> *function) {
676
+ std::function<R (ContextBase *, Args...)> *function) {
679
677
auto it = module_functions_.find (std::string (function_name));
680
678
if (it == module_functions_.end ()) {
681
679
*function = nullptr ;
0 commit comments