Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Removes unused extern C method. #7

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

francocipollone
Copy link
Collaborator

@francocipollone francocipollone commented Oct 15, 2021

The method

extern "C" void drake_set_assertion_failure_to_throw_exception()

is expected to be used only by pydrake bindings which weren't ported from drake to maliput_drake.

Given that this method doesn't suffer any kind of name mangling by the compiler because of the extern C declaration, it could cause duplicated symbol errors downstream when both drake and maliput_drake are being used.

From slack thread

Copy link
Collaborator

@liangfok liangfok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks!

@francocipollone francocipollone merged commit 23cb939 into main Oct 15, 2021
@francocipollone francocipollone deleted the francocipollone/remove_extern_c_method branch October 15, 2021 20:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants