hig level macro functs, return true on success:
| 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;} |
| 419 | { |
| 420 | ODBlock* temp = getBlock(ident); |
| 421 | if (temp) |
| 422 | { |
| 423 | temp->reset(); |
| 424 | for(; count && temp->moreTerminals(); --count) |
| 425 | if(p) |
| 426 | sscanf(temp->nextTerminal(),"%u", p++); |
| 427 | |
| 428 | return !count; |
| 429 | } |
| 430 | return false; |
| 431 | } |
| 432 | |
| 433 | bool ODBlock::getBlockString(const char * ident, const char ** p) //of form: ident{abcdef;} |
| 434 | { |
no test coverage detected