added MV_CRASH

This commit is contained in:
cpunch 2025-07-17 21:14:50 -05:00
parent 8d4b8fdfca
commit b2609d5d30
3 changed files with 28 additions and 0 deletions

View File

@ -11,6 +11,8 @@ lastmod: "2025-05-01T18:47:58-05:00"
will compress the passed string and decompress at runtime. 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 ## Valid Usage
```lua ```lua

View File

@ -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." /%}}

View File

@ -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." /%}} {{% alert context="info" text="**Note**: `LPH_ENCFUNC` is an available alias." /%}}
## Valid Usage ## Valid Usage
```lua ```lua
local total = 0 local total = 0