-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(override): override C++ allocation functions
Ideally, the overriding implementations should be defined in a C++ source file compiled and linked by the use of `cc`. This doesn't work at the moment because their symbols aren't exported by the final cdylib file. This commit works around the issue by implementing them in Rust code. This is a sketchy hack at best since it makes assumptions about the target environment's C++ mangling scheme and calling conventions. This work-around might be made unnecessary by [rust-lang/rfcs#2771][1]. [1]: rust-lang/rfcs#2771
- Loading branch information
Showing
1 changed file
with
147 additions
and
0 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