DCode
Covers Engine 2.0.0
import
Import a helper .dcode module in either backend, or a .lua helper in Lua mode. Relative paths resolve from the importing file.
Syntax
import "<module>"Available in
- File scope
- Runtime block scope
Native C++
Compiles helper-only .dcode modules, including nested imports, into the native artifact. Raw .lua modules require the Lua backend. Relative paths resolve from the importing file.
Example
import "./helpers/math"