CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

File names for software index?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Tom-H-PIC



Joined: 08 Sep 2003
Posts: 105
Location: New Castle, DE

View user's profile Send private message

File names for software index?
PostPosted: Mon Apr 15, 2019 11:57 am     Reply with quote

Hello All
I'm looking for a way to get the file name of each include file and put it in ROM at the time of compiling.
This would be used for a software configuration index function and printed out serial.

I see _file_ and _filename_ but I think these are only valid for the main compile time file.
temtronic



Joined: 01 Jul 2010
Posts: 9100
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Apr 15, 2019 7:17 pm     Reply with quote

'include files' tend to be say 'drivers' or code you write, so it'd be easy to add 1 or 2 lines at the beginning of the files. I'd have 'main()' transfer and store those values to ROM in a neat,organized table.

Jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group