You should always use curly brackets. Especially when the inside statement
has its own curlys. This can be confusing and has already lead to bugs in
many projects.
* function name itself. Slow, but this should rarely happen.
*/
for (unsigned int i = 0; i < cur_klass->desc->ops.count; i++)
- if (api_name && !strcmp(api_name, op_descs[i].api_name))
- {
- if (op_descs[i].api_func == NULL || op_descs[i].api_func == ((void (*)())-1))
- break;
- return &op_descs[i];
- }
+ {
+ if (api_name && !strcmp(api_name, op_descs[i].api_name))
+ {
+ if (op_descs[i].api_func == NULL || op_descs[i].api_func == ((void (*)())-1))
+ break;
+ return &op_descs[i];
+ }
+ }
#endif
}
}