forked from emscripten-core/emscripten
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebIDL Binder: Add 'BindTo' extended attribute to pick the called fun…
…ction (emscripten-core#22779) This attribute can be used to change the C++ function that will be called. It can be used expose functions that have multiple overloads with the same number of parameters. Example: // C++ class BindToTest { public: int test(const char*) { return 1; } int test(int) { return 2; } }; // WebIDL interface BindToTest { void BindToTest(); [BindTo="test"] long testString([Const] DOMString arg); [BindTo="test"] long testInt(long arg); };
- Loading branch information
Showing
9 changed files
with
80 additions
and
5 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
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 |
---|---|---|
|
@@ -73,6 +73,8 @@ getAsArray: 24 | |
Inner::+= => 2 | ||
add: 3 | ||
mul2: 50 | ||
testString: 1 | ||
testInt: 2 | ||
0 | ||
1 | ||
34,34 | ||
|
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 |
---|---|---|
|
@@ -73,6 +73,8 @@ getAsArray: 24 | |
Inner::+= => 2 | ||
add: 3 | ||
mul2: 50 | ||
testString: 1 | ||
testInt: 2 | ||
0 | ||
1 | ||
34,34 | ||
|
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 |
---|---|---|
|
@@ -73,6 +73,8 @@ getAsArray: 24 | |
Inner::+= => 2 | ||
add: 3 | ||
mul2: 50 | ||
testString: 1 | ||
testInt: 2 | ||
0 | ||
1 | ||
34,34 | ||
|
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