MCPcopy Index your code
hub / github.com/antimatter15/ocrad.js / assert

Function assert

ocrad.js:398–402  ·  view source on GitHub ↗
(condition, text)

Source from the content-addressed store, hash-verified

396var EXITSTATUS = 0;
397
398function assert(condition, text) {
399 if (!condition) {
400 abort('Assertion failed: ' + text);
401 }
402}
403
404var globalScope = this;
405

Callers 15

createOcradInstanceFunction · 0.85
getCFuncFunction · 0.85
allocateFunction · 0.85
Pointer_stringifyFunction · 0.85
stringToUTF8Function · 0.85
stringToUTF16Function · 0.85
stringToUTF32Function · 0.85
intArrayToStringFunction · 0.85
writeAsciiToMemoryFunction · 0.85
addRunDependencyFunction · 0.85
removeRunDependencyFunction · 0.85
doCallbackFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected