Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Macros (or similar) to get the file name in *.h and *.c(Is it possible to get the file name to use it in STRINGIFY?)
Macros (or similar) to get the file name in *.h and *.c [message #1830256] Wed, 22 July 2020 07:38
Alexey Sheviakov is currently offline Alexey SheviakovFriend
Messages: 1
Registered: July 2020
Junior Member
I am using the C language and want to use the name of the file in which this structure is defined as the name of the instance of the structure. Is it possible?

The test.h file:
#include "../xxxxxxx.h"

extern	XXXX_t		#FILE_NAME;


The test.c file:
#include "test.h"

//Some method as field of struct
void	#FILE_NAME_info()
{
	something to do
};

//Struct initialization
XXXX_t	#FILE_NAME=
{		FILE_NAME_info,
};

Previous Topic:IDE tabs drag & drop fails
Next Topic:Updating Eclipse versions
Goto Forum:
  


Current Time: Thu Oct 03 17:29:10 GMT 2024

Powered by FUDForum. Page generated in 0.03075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top