-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ngo Iok Ui
committed
Jan 29, 2021
1 parent
7f33214
commit 722e121
Showing
6 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "collections.h" | ||
|
||
#define WIN32_LEAN_AND_MEAN | ||
#include <winrt/Windows.Foundation.Collections.h> | ||
using namespace winrt; | ||
void* ivector(const char* js) { | ||
auto x = winrt::single_threaded_vector<hstring>({ winrt::to_hstring(js) }); | ||
|
||
return reinterpret_cast<void*>(winrt::detach_abi(x)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef COLLECTIONS_H | ||
#define COLLECTIONS_H | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void* ivector(const char* js); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif //COLLECTIONS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters