| 997 | } |
| 998 | |
| 999 | S32 getIntVariable(const char *varName, S32 def) |
| 1000 | { |
| 1001 | const char *objField = getObjectTokenField(varName); |
| 1002 | if (objField) |
| 1003 | { |
| 1004 | return *objField ? dAtoi(objField) : def; |
| 1005 | } |
| 1006 | else |
| 1007 | { |
| 1008 | Dictionary::Entry *entry = getVariableEntry(varName); |
| 1009 | return entry ? entry->getIntValue() : def; |
| 1010 | } |
| 1011 | } |
| 1012 | |
| 1013 | F32 getFloatVariable(const char *varName, F32 def) |
| 1014 | { |
no test coverage detected