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 IRState*

context

loc Loc

location to use for assert message

exp Expression

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

emsg Expression

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

str const(char)*

if not null then informative message string

Return Value

Type: elem*

generated call

Meta