Skip to content

インライン変数を使用して変数定義を集約する#340

Merged
sayurin merged 1 commit intomasterfrom
inline-variable
Nov 8, 2021
Merged

インライン変数を使用して変数定義を集約する#340
sayurin merged 1 commit intomasterfrom
inline-variable

Conversation

@sayurin
Copy link
Copy Markdown
Member

@sayurin sayurin commented Nov 8, 2021

従来の記述では

  • main.cppで定義して
  • option.cppで設定して
  • registry.cppで設定の読み書きをして
  • 各ファイルで参照して

と分散していた。インライン変数を使用することで、これらをcommon.hに集約する。これによりデフォルト値も読み易くなる。

@sayurin sayurin self-assigned this Nov 8, 2021
@sayurin sayurin merged commit 0b1022b into master Nov 8, 2021
@sayurin sayurin deleted the inline-variable branch November 8, 2021 13:52
@sayurin sayurin added this to the v5.5 milestone Nov 14, 2021
hwtnb pushed a commit to HaijinW/ffftp that referenced this pull request Oct 31, 2022
インライン変数を使用して変数定義を集約する
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant