goog.proto2.Util
Functions
expand_more
assert( condition, opt_message ) → void
void
Asserts that the given condition is true, if and only if the PBCHECK flag is on.
Parameters |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Throws |
|
expand_more
conductChecks() → boolean
boolean
Returns true if debug assertions (checks) are on.
Parameters | None. | ||
---|---|---|---|
Returns |
|
Compiler Constants
expand_more
goog.proto2.Util.PBCHECK → boolean
boolean
Defines a PBCHECK constant that can be turned off by clients of PB2. This for is clients that do not want assertion/checking running even in non-COMPILED builds.