MCPcopy Create free account
hub / github.com/Snapchat/djinni / run_sort

Method run_sort

examples/generated-src/wasm/NativeSortItems.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35}
36em::val NativeSortItems::run_sort(const em::val& w_items) {
37 try {
38 auto r = ::textsort::SortItems::run_sort(::djinni_generated::NativeItemList::toCpp(w_items));
39 return ::djinni_generated::NativeItemList::fromCpp(r);
40 }
41 catch(const std::exception& e) {
42 return ::djinni::ExceptionHandlingTraits<::djinni_generated::NativeItemList>::handleNativeException(e);
43 }
44}
45
46EMSCRIPTEN_BINDINGS(textsort_sort_items) {
47 em::class_<::textsort::SortItems>("SortItems")

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected