diff --git a/content/docs/macros/MV_COMPRESS.md b/content/docs/macros/MV_COMPRESS.md index 9ad29cb..e235e25 100644 --- a/content/docs/macros/MV_COMPRESS.md +++ b/content/docs/macros/MV_COMPRESS.md @@ -11,6 +11,8 @@ lastmod: "2025-05-01T18:47:58-05:00" will compress the passed string and decompress at runtime. +{{% alert context="info" text="**Note**: `LPH_ENCSTR` is an available alias, although not a direct replacement." /%}} + ## Valid Usage ```lua diff --git a/content/docs/macros/MV_CRASH.md b/content/docs/macros/MV_CRASH.md new file mode 100644 index 0000000..e4a606d --- /dev/null +++ b/content/docs/macros/MV_CRASH.md @@ -0,0 +1,25 @@ +--- +weight: 100 +title: "MV_CRASH" +description: "Crashes the VM" +icon: "code_blocks" +date: "2025-05-01T18:47:58-05:00" +lastmod: "2025-05-01T18:47:58-05:00" +--- + +`declare function MV_CRASH(void): void` + +crashes the VM and corrupts the state. + +{{% alert context="info" text="**Note**: `LPH_CRASH` is an available alias" /%}} + +## Valid Usage + +```lua +MV_VM(function() MV_CRASH() end)() +MV_VM(function() + local a = MV_CRASH() +end)() +``` + +{{% alert context="warning" text="**Note**: This macro can only be used in virtualized blocks." /%}} \ No newline at end of file diff --git a/content/docs/macros/MV_ENC_FUNC.md b/content/docs/macros/MV_ENC_FUNC.md index 8b7d00b..d3b7ee9 100644 --- a/content/docs/macros/MV_ENC_FUNC.md +++ b/content/docs/macros/MV_ENC_FUNC.md @@ -14,6 +14,7 @@ will virtualize and encrypt the passed function constant with the provided `encr {{% alert context="info" text="**Note**: `LPH_ENCFUNC` is an available alias." /%}} ## Valid Usage + ```lua local total = 0