diff --git a/content/docs/compatibility.md b/content/docs/compatibility.md index ad9a559..0ea0b09 100644 --- a/content/docs/compatibility.md +++ b/content/docs/compatibility.md @@ -13,18 +13,18 @@ Many of Luraph's macros do features or optimizations that are already built into {{% table %}} -| Luraph Macro | MoonVeil Alias | -| ----- | ----- | -| `LPH_ENCFUNC` | `MV_ENC_FUNC` | -| `LPH_ENCSTR` | `MV_COMPRESS` | -| `LPH_ENCNUM` | `MV_NO_OP` | -| `LPH_CRASH` | `MV_CRASH` | -| `LPH_NO_VIRTUALIZE` | `MV_OMIT` | -| `LPH_JIT` | `MV_NO_OP` | -| `LPH_JIT_MAX` | `MV_NO_OP` | -| `LPH_NO_UPVALUES` | `MV_NO_OP` | -| `LPH_LINE` | `MV_LINE` | -| `LPH_OBFUSCATED` | `MV_OBFUSCATED` | +| Luraph Macro | MoonVeil Alias | Description | +| ----- | ----- | ----- | +| `LPH_ENCFUNC` | [MV_ENC_FUNC](/docs/macros/mv_enc_func) | Virtualizes and encrypts functions | +| `LPH_ENCSTR` | `MV_NO_OP` | Not applicable | +| `LPH_ENCNUM` | `MV_NO_OP` | Not applicable | +| `LPH_CRASH` | [MV_CRASH](/docs/macros/mv_crash) | Crashes the VM | +| `LPH_NO_VIRTUALIZE` | [MV_OMIT](/docs/macros/mv_omit) | Omits a function from all obfuscation steps | +| `LPH_JIT` | `MV_NO_OP` | MoonVeil provides built-in optimizations | +| `LPH_JIT_MAX` | `MV_NO_OP` | MoonVeil provides built-in optimizations | +| `LPH_NO_UPVALUES` | `MV_NO_OP` | Not applicable | +| `LPH_LINE` | [MV_LINE](/docs/macros/mv_line) | Current line number | +| `LPH_OBFUSCATED` | [MV_OBFUSCATED](/docs/macros/mv_obfuscated) | Detects obfuscation | {{% /table %}} {{% alert context="info" text="`MV_NO_OP` isn't user accessible, and is only used to provide source compatibility." /%}} diff --git a/content/docs/macros/MV_LINE.md b/content/docs/macros/MV_LINE.md index d82f313..ec2ffa4 100644 --- a/content/docs/macros/MV_LINE.md +++ b/content/docs/macros/MV_LINE.md @@ -20,7 +20,7 @@ local a = MV_LINE print(a, MV_LINE) ``` -Obfuscates to: +turns into: ```lua print(1,2) diff --git a/content/docs/macros/MV_OBFUSCATED.md b/content/docs/macros/MV_OBFUSCATED.md index fac6555..68d261b 100644 --- a/content/docs/macros/MV_OBFUSCATED.md +++ b/content/docs/macros/MV_OBFUSCATED.md @@ -27,7 +27,7 @@ end return if MV_OBFUSCATED then runWithoutDebugging() else runWithDebugging() ``` -Obfuscates to: +turns into: ```lua do diff --git a/content/docs/macros/MV_OMIT_FUNCTION.md b/content/docs/macros/MV_OMIT_FUNCTION.md index a62ab8a..0fab280 100644 --- a/content/docs/macros/MV_OMIT_FUNCTION.md +++ b/content/docs/macros/MV_OMIT_FUNCTION.md @@ -9,7 +9,7 @@ lastmod: "2025-05-01T18:47:58-05:00" `declare function MV_OMIT(omit: any): any` -will omit all mangling steps from the passed expression, will also disregard any indexes set by `MV_INDEX_TO_NUM`. Passing a function to this can be useful to keep performance-critical sections unobfuscated. +will omit all obfuscation steps from the passed expression, will also disregard any indexes set by `MV_INDEX_TO_NUM`. Passing a function to this can be useful to keep performance-critical sections unobfuscated. When used in a virtualized block (using the [MV_VM](./MV_VM) or [MV_ENC_FUNC](./MV_ENC_FUNC) macros), this will lift the function from the virtualized block as a separate standalone minified function in plaintext.