Skip to content

globals

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Global Intrinsics

Name Parameters Purpose
import libname="" Import a MiniScript library by name, searching MS_IMPORT_PATH; stores the module under that name and returns it
exit resultCode Exit the program with the given result code
env Get a map of all environment variables
shellArgs Get the script path and the command-line arguments following it
run path="" Load and run a MiniScript file in the current interpreter context
autoUnload resource Flag a raylib resource to be unloaded automatically when no longer referenced; returns the resource
resourceCounts Get a map of currently loaded resource counts by type (Image, Texture, Font, etc.)
hostMemory see HostBytesInUse above.

Clone this wiki locally