static_gen_header.pl

static_gen_header.pl

Interface/Implの雛形を生成してくれるヘッダファイル

  • typedef書くのがめんどくさいので作った

# 使い方

# Interfaceを作る

--interfaceの後ろに定義したいInterface名を書く

1
$tools/static_gen_header.pl --interface List

-wをつけるとinterfaceディレクトリに生成される

1
$tools/static_gen_header.pl -w --interface list

-o ファイル名を指定すると、任意の場所に書き出される

1
$tools/static_gen_header.pl -o List.h --interface list

# Implを作る

  • --implも合わせて指定する
    • 他のオプションはInterfaceと同様
1
$tools/static_gen_header.pl --impl single_linked_list --interface list
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy