diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-11 18:32:09 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-11 18:32:09 -0600 |
commit | bdfab643e70df469dd0d163cc91bf48955250735 (patch) | |
tree | 6e88b16b93315ebc0d1e9d868e8e1b3a7cd7b32a /tests/headers/macro-expr-basic.h | |
parent | 87c25bef2e48d08c87b8a3931c88fdaf950fcda1 (diff) | |
parent | 5851026f744ddf2807f3eafa8c9341134ae7f4f2 (diff) |
Auto merge of #240 - fitzgen:overloads, r=emilio
Add support for bindings to overloaded functions
This commit (re)adds support for generating bindings to overloaded
functions. First, we use the symbol name instead of the canonical name
when checking if we have already generated bindings for a given
function. Second, we add a map from canonical names to number of times
we have generated a function with that canonical name. We increment this
number every time we generate a function. When the number is greater
than zero, we append it to the function name so that overloaded
functions get a unique Rust symbol.
Fixes #239
r? @emilio
Diffstat (limited to 'tests/headers/macro-expr-basic.h')
0 files changed, 0 insertions, 0 deletions