MCPcopy Create free account
hub / github.com/cocos/cocos-engine / assertID

Function assertID

cocos/core/platform/debug.ts:295–300  ·  view source on GitHub ↗
(condition: boolean, id: number, ...optionalParams: StringSubstitution[])

Source from the content-addressed store, hash-verified

293
294const assertFormatter = getTypedFormatter('Assert');
295export function assertID (condition: boolean, id: number, ...optionalParams: StringSubstitution[]): void {
296 if (condition) {
297 return;
298 }
299 assert(false, assertFormatter(id, ...optionalParams));
300}
301
302/**
303 * @en Enum for debug modes.

Callers 15

runSceneImmediateMethod · 0.90
runSceneMethod · 0.90
_allocateBufferMethod · 0.90
_allocateBufferMethod · 0.90
pixelBufferPickFunction · 0.90
pixelBufferPickFunction · 0.90
scheduleMethod · 0.90
isScheduledMethod · 0.90
pauseTargetMethod · 0.90

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected