LoginSignup
0
1

More than 5 years have passed since last update.

naming > モジュール初期化 / クリーンナップ の関数 > Create() / Destroy()

Last updated at Posted at 2015-10-31

@ テスト駆動開発による組込みプログラミング by James Grenning

モジュールの初期化とクリーンナップのための関数として

約束事として、私はCreate関数とDestroy関数をそれぞれのモジュールに用意している

過去に出くわした関数例としては
Create()に対応するもの
- Init()
- Setup()

Destroy()に対応するもの
- TearDown()
- Terminate()
- Finalize()

どれを選択すれば正しいか分からないが、一貫性があればいいと思う。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1