Skip to content

Commit

Permalink
Some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-wojciechowski committed Nov 16, 2023
1 parent b22194d commit 545c51e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/bgen/BindingTouch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ int Main3 (string [] args)
ErrorHelper.ClearWarningLevels ();
BindingTouchConfig bindingTouchConfig = new();
// TODO CreateOptionSet creates that value in the datablob. Is that really necessary?
if (!CreateOptionSet (bindingTouchConfig, args) || !InitializeApi (ref bindingTouchConfig) || !InitializeManagers (ref bindingTouchConfig) || !TestLinkWith (bindingTouchConfig))
return 1; // TODO Notate in the PR every time program returns 1 or 0.
if (!CreateOptionSet (bindingTouchConfig, args) || !InitializeApi (ref bindingTouchConfig) ||
!InitializeManagers (ref bindingTouchConfig) || !TestLinkWith (bindingTouchConfig))
return 1; // TODO Notate in the PR every time program returns 1 or 0. Also, highly disagreeable to have this "Main3" return numbers

PopulateTypesAndStrongDictionaries( bindingTouchConfig.api, bindingTouchConfig.process_enums, out List<Type> types2, out List<Type> strong_dictionaries2);
PerformGenerate (ref bindingTouchConfig, types2, strong_dictionaries2);
Expand Down Expand Up @@ -306,7 +307,6 @@ private List<string> CreateCompilationArguments (BindingTouchConfig bindingTouch

private bool CreateOptionSet ( BindingTouchConfig bindingTouchConfig, string[] args)
{
//BindingTouchConfig bindingTouchConfig = ogBlob;
bindingTouchConfig.os = new OptionSet () {
{ "h|?|help", "Displays the help", v => bindingTouchConfig.show_help = true },
{ "a", "Include alpha bindings (Obsolete).", v => {}, true },
Expand Down Expand Up @@ -493,8 +493,6 @@ private bool InitializeManagers (ref BindingTouchConfig bindingTouchConfig)
{
attributeManager ??= new AttributeManager (this);
Frameworks = new Frameworks (CurrentPlatform);



typeCache ??= new(universe, Frameworks, CurrentPlatform, bindingTouchConfig.api, universe.CoreAssembly, bindingTouchConfig.baselib,
BindThirdPartyLibrary);
Expand Down

0 comments on commit 545c51e

Please sign in to comment.