문제

Is there a more organized way to use function prototyping or something similar and more efficient? I've had a few problems with function prototyping getting unorganized and filling most of my files with externs and voids.

도움이 되었습니까?

해결책

I assume that under function prototyping you are asking how to organize all function signatures so that other compilation modules can reuse them.

  • Obvious: put prototype into header files

  • Use headers generators (Makeheaders, GCC AutoInclude) - so that you do not have to write these yourself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top