non c'è ma è facilmente creabile. na cosa tipo:
Altro da aggiungere?codice:/* inizio code */ #define NOMEFUNZ #define NUMLINE #define DESCRIPTION #define SETFLAGS(FUNZ, LINE, DES) \ { \ #undef NOMEFUNZ \ #undef NUMLINE \ #undef DESCRIPTION \ #define NOMEFUNZ (FUNZ) \ #define NUMLINE (LINE) \ #define DESCRIPTION (DES) \ } int funzione(void); int funzione() { SETFLAGS("funzione", 123, "shittyfunction"); /* .... */ }
Questo è codice C in C++ si potrebbe (e si dovrebbe) fare diversamente. Cmq sarebbe più semplice lavorare sullo stack che sul text del programma...
bye

Rispondi quotando