14 Apr
2004
14 Apr
'04
13:42
Hallo,
* Eberhard Wilfrid ZFF TE-PR
ich hab ein Problem mit dem Praeprozessor,
ich hab folgenden Define:
#define GET_TEST_MACRO(name, idx) (&(test_ptr->name##[idx]))
in einem c-File habe ich folgenden Aufruf:
hallo = GET_TEST_MACRO(kap, kap_nr);
Der Kompiler spukt folgende Fehlermeldung aus
pasting "kap" and "[" does not give a valid preprocessing token
ich würde mal die Tatsache ausnutzen, dass a[b] == *(a + b) gilt. Das dürfte zu leichter verdaulicher Syntax führen. Gruß, Bernhard -- _________ http://www.bwalle.de _________________________________________________ I couldn't give [Bill Gates] advice in business and he couldn't give me advice in technology. -- Linus Benedict Torvalds