Go to the source code of this file.
◆ EMSCRIPTEN_BINDINGS()
EMSCRIPTEN_BINDINGS |
( |
Core |
| ) |
|
This function does a public thing.
- Parameters
-
The Something class is quite something. See SkSomething.h for more.
Returns a Something with the provided name.
- Parameters
-
Returns the associated name.
Definition at line 27 of file core.cpp.
27 {
29 function("_privateFunction", optional_override([](
int x,
int y)->
size_t {
31 }));
32
33
34
35
36
37 TS_EXPORT(
"publicFunction(input: string): void")
38 function("publicFunction", optional_override([](
std::
string s)->
void {
39 printf(
"Hello %s\n",
s.c_str());
40 }));
41
42
43
44
45 class_<Something>("Something")
46
47
48
49
51 .constructor<
std::
string>()
52
53
54
59}
#define TS_PRIVATE_EXPORT(ts_code)
#define TS_EXPORT(ts_code)
Dart_NativeFunction function
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
DEF_SWITCHES_START aot vmservice shared library name