hig level macro functs, return true on success:
| 400 | |
| 401 | // hig level macro functs, return true on success: |
| 402 | bool ODBlock::getBlockInt(const char * ident, int* p, unsigned count) //reads blocks of form: ident{ 123; 123; ... } |
| 403 | { |
| 404 | ODBlock* temp = getBlock(ident); |
| 405 | if (temp) |
| 406 | { |
| 407 | temp->reset(); |
| 408 | for(; count && temp->moreTerminals(); --count) |
| 409 | if(p) |
| 410 | sscanf(temp->nextTerminal(),"%d", p++); |
| 411 | |
| 412 | return !count; |
| 413 | } |
| 414 | return false; |
| 415 | } |
| 416 | |
| 417 | // hig level macro functs, return true on success: |
| 418 | bool ODBlock::getBlockU32(const char * ident, physx::PxU32* p, unsigned count) //reads blocks of form: ident{ 123;} |
no test coverage detected