callCAssert

Generate call to C's assert failure function. One of exp, emsg, or str must not be null.

extern (C++)
callCAssert
(,
const ref Loc loc
,,,
const(char)* str
)

Parameters

irs
Type: IRState*

context

loc
Type: Loc

location to use for assert message

exp

if not null expression to test (not evaluated, but converted to a string)

emsg

if not null then informative message to be computed at run time

str
Type: const(char)*

if not null then informative message string

Return Value

Type: elem*

generated call

Meta