Author Topic: File template question  (Read 1388 times)

Offline buzibiho

  • Single posting newcomer
  • *
  • Posts: 1
File template question
« on: August 13, 2021, 09:22:41 am »
Hi,
I know that C::B can make use of project templates. But is it possible to create a file template, i.e. for any user-given string foo, create:

1. foo.h, which already has the include guards
2. foo.c, which includes "foo.h"

in the subdirectory src?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2991
Re: File template question
« Reply #1 on: August 13, 2021, 11:06:57 am »
You probably could create a wizard script...

You want to generate two files?

Offline huycan

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: File template question
« Reply #2 on: August 15, 2021, 12:37:58 pm »
I usually use the New class template to create the two files... (albeit the files will be .h and .cpp, not .c as you want)