I want to be able to do like
int a = RANDOM("132");
int b = RANDOM("56");
and the macro runs the program with the specified parameter and a and b gets the output
makefile question
Not going to work; it's the wrong way around. The preprocessor can't invoke programs.
Is there a reason you can't just do it at runtime? What *exactly* are you trying to do? I really can't think of why you would want to produce a different "randomized" executable each time you compile the same code o_O
Is there a reason you can't just do it at runtime? What *exactly* are you trying to do? I really can't think of why you would want to produce a different "randomized" executable each time you compile the same code o_O
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement