I have some functions that can be defined by users like :
int prop1(....) {
if(...)
return Prop2;
return Failed;
}
int prop2(...) {
if(...)
return Prop3;
return Failed;
}
I want to create a file if the dependencies between the different functions.
Is there some way to generate a Enum at compile time and parse the file with some kind of regex to extract the different return tokens in a function and write it to a file.
Aucun commentaire:
Enregistrer un commentaire