The OpenD Programming Language

dynamicCompileEmit

When applied to a function, makes this function available for dynamic compilation. In contrast to @dynamicCompile, calls to the function will be to the statically compiled function (like normal functions). The function body is made available for dynamic compilation with the jit facilities (e.g. jit bind). If both @dynamicCompile and @dynamicCompileEmit attributes are applied to function, @dynamicCompile will get precedence.

This attribute has no effect if dynamic compilation wasn't enabled with -enable-dynamic-compile

immutable
auto dynamicCompileEmit = _dynamicCompileEmit();

Examples

import ldc.attributes;

@dynamicCompileEmit int foo() { return 42; }

Meta