Skip to main content



      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 03:38
Eclipse UserFriend
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: Tue Jul 08 20:57:50 EDT 2025

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

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

Back to the top