R
.rhavin grobert
first of all: sorry for perhaps posting something already answered
anywhere, i couldnt find any useful info - define, macro, include and
so on are very poor keywords;-)
my problem:
i want to do something like...
INCLUDE_TYPES(#include);
....that resolves to ...
#include "file1.h"
#include "file2.h"
#include "file3.h"
.... and my try was a...
#define INCLUDE_TYPES(Q_L) \
Q_L "file1.h" \
Q_L "file2.h" \
Q_L "file3.h" \
....but my compiler complains about...
'#' : invalid character : possibly the result of a macro expansion
....so that way dont work. i cant do a simple...
#include "files.h"
....with all other includes in that file so im looking for some
different idea and would appreciate any useful help.
TIA, -.rhavin;-)
anywhere, i couldnt find any useful info - define, macro, include and
so on are very poor keywords;-)
my problem:
i want to do something like...
INCLUDE_TYPES(#include);
....that resolves to ...
#include "file1.h"
#include "file2.h"
#include "file3.h"
.... and my try was a...
#define INCLUDE_TYPES(Q_L) \
Q_L "file1.h" \
Q_L "file2.h" \
Q_L "file3.h" \
....but my compiler complains about...
'#' : invalid character : possibly the result of a macro expansion
....so that way dont work. i cant do a simple...
#include "files.h"
....with all other includes in that file so im looking for some
different idea and would appreciate any useful help.
TIA, -.rhavin;-)