added MV_CRASH
This commit is contained in:
parent
8d4b8fdfca
commit
b2609d5d30
@ -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
|
||||||
|
25
content/docs/macros/MV_CRASH.md
Normal file
25
content/docs/macros/MV_CRASH.md
Normal 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." /%}}
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user