I am wanting to 'activate' an if else using a function's parameters. What I currently have is:
int cpu(Level level, uint32_t function, std::vector<float> &output){
// stuff
if (function == 1) {
// do something;
}
else {
// do something else;
}
}
TEST(...){
cpu(level, 1, cpu_output);
}
Why is this not working?
Aucun commentaire:
Enregistrer un commentaire