Skip to content

made options a constexpr array, removed unused lib & root#165

Merged
Scottj1s merged 3 commits into
masterfrom
scottj1s/options_cleanup
Feb 8, 2019
Merged

made options a constexpr array, removed unused lib & root#165
Scottj1s merged 3 commits into
masterfrom
scottj1s/options_cleanup

Conversation

@Scottj1s

@Scottj1s Scottj1s commented Feb 8, 2019

Copy link
Copy Markdown
Member

No description provided.

@Scottj1s Scottj1s requested a review from BenJKuhn as a code owner February 8, 2019 23:33
@Scottj1s Scottj1s merged commit 502d33b into master Feb 8, 2019
@Scottj1s Scottj1s deleted the scottj1s/options_cleanup branch February 8, 2019 23:54
w.write_root_include("base");
auto format = R"(%
bool WINRT_CALL %_can_unload_now() noexcept
bool WINRT_CALL winrt_can_unload_now() noexcept

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, this is wrong. It's very important that this preamble to these functions is still configurable.

}

void* WINRT_CALL %_get_activation_factory(std::wstring_view const& name)
void* WINRT_CALL winrt_get_activation_factory(std::wstring_view const& name)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here

#endif

return %_can_unload_now() ? 0 : 1;
return winrt_can_unload_now() ? 0 : 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And here

std::wstring_view const name{ buffer, length };

*factory = %_get_activation_factory(name);
*factory = winrt_get_activation_factory(name);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And here

{ "help", 0, cmd::option::no_max, {}, "Show detailed help with examples" },
{ "root", 0, 1 }, // "Root folder name for projection headers (defaults to winrt)
{ "filter" }, // One or more prefixes to include in input (same as -include)
{ "lib", 0, 1 }, // Specify library prefix (defaults to winrt)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll fix this up. I forgot the lib prefix applies to those module exports. It's critical that they can be changed to allow multiple libs to be combined into a single DLL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants