The use of "user_config.h"

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

The use of "user_config.h"

Postby kolban » Fri Jul 24, 2015 6:15 am

I'm starting to think that the "user_config.h" might not be a great idea. It seems that in a number of SDK supplied headers, they try and include a C include file called "user_config.h" which is not supplied with the SDK but is, instead, expected to be supplied by the application programmer. What I am not seeing is why this pattern is present? Why not omit any inclusion of "user_config.h" and simply let the programmer include it (or not) as needed in their own apps? I keep finding myself creating an empty "user_config.h" just for the purpose of satisfying the compiler ... and when I do that, warning bells start to go off. It can mean I don't understand something properly ...

What does the community think about the "user_config.h" mandatory header file?

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: The use of "user_config.h"

Postby eriksl » Sat Aug 01, 2015 2:21 am

It's one of the things that needs improvement. Just like the pile of functions that lack a prototype, that's very basic stuff missing!

dkinzer
Posts: 52
Joined: Fri Jul 31, 2015 7:37 am

Re: The use of "user_config.h"

Postby dkinzer » Sun Aug 02, 2015 11:13 pm

kolban wrote:I keep finding myself creating an empty "user_config.h" just for the purpose of satisfying the compiler [...]
Although purists might object, I created the empty user_config.h in the SDK include directory.
Don Kinzer
Beaverton, OR, USA

Who is online

Users browsing this forum: No registered users and 68 guests