bdeIsBlockAtomic
Checks to see if block is Atomic. block is of type hwscpHyperBlock. Block must be a super block. The Atomic flag is a code generation option that converts a super block into a basic block.
Syntax
bdeIsBlockAtomic(block);
Inputs
- block
- Block to check if atomic.
Outputs
- boolean
- Whether or not the block is atomic. If it is then it will return 1, otherwise it will return 0.
Examples
Check to see if block is atomic (while block is atomic):
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
boolean = bdeIsBlockAtomic(block)
boolean = 1
Check to see if block is atomic (while block is not atomic):
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
boolean = bdeIsBlockAtomic(block)
boolean = 0