-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add dynamic loading of variable
- Loading branch information
Showing
8 changed files
with
165 additions
and
5 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
bindgen-tests/tests/expectations/tests/dynamic_loading_variable_required.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
bindgen-tests/tests/expectations/tests/dynamic_loading_variable_simple.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
bindgen-tests/tests/expectations/tests/dynamic_loading_variable_with_allowlist.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
bindgen-tests/tests/headers/dynamic_loading_variable_required.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// bindgen-flags: --dynamic-loading TestLib --dynamic-link-require-all | ||
|
||
int foo; | ||
int *baz; |
4 changes: 4 additions & 0 deletions
4
bindgen-tests/tests/headers/dynamic_loading_variable_simple.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// bindgen-flags: --dynamic-loading TestLib | ||
|
||
int foo; | ||
int *baz; |
5 changes: 5 additions & 0 deletions
5
bindgen-tests/tests/headers/dynamic_loading_variable_with_allowlist.hpp
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,5 @@ | ||
// bindgen-flags: --dynamic-loading TestLib --allowlist-var foo --allowlist-var bar | ||
|
||
int foo; | ||
int bar; | ||
int baz; // should not be allowed |
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