kcl-lib 0.2.180

KittyCAD Language implementation and tools
Documentation
/// Functions for debugging and interacting with the runtime system.

@no_std
@settings(defaultLengthUnit = mm, kclVersion = 1.0, experimentalFeatures = allow)

/// Exit the program early.
///
/// Exiting early can be helpful to see the intermediate output of a program to
/// help debug. Remember to always remove the call to `exit()` after debugging
/// is complete.
///
/// When `exit()` is used in an imported module, only the imported module exits
/// early. Because imported modules execute concurrently, `exit()` in one module
/// does not affect other modules.
///
/// On the other hand, if you import a function from another module, and that
/// function calls `exit()`, then calling the function exits the caller.
@(impl = std_rust, experimental = true, feature_tree = true)
export fn exit() {}