Crate gmod[][src]

Re-exports

pub use libloading;
pub use detour;
pub use skidscan as sigscan;
pub use cstr;

Modules

Advanced dark magic utilities

Lua interface

Colorful printing

Net library helpers

Userdata types

Macros

Common pattern for detouring.

Enforces a debug assertion that the Lua stack is unchanged after this block of code is executed.

Converts a string literal to a Lua-compatible NUL terminated string at compile time.

Opens & returns a shared library loaded by Garry’s Mod. You are most likely looking for open_library_srv!, as this will prioritize non-_srv.so libraries on Linux main branch.

Opens & returns a shared library loaded by Garry’s Mod using the raw path to the module.

Opens & returns a shared library loaded by Garry’s Mod, in “server mode” (will prioritize _srv.so on Linux main branch)

Functions

Returns whether this client is running the x86-64 branch

Attribute Macros

Marks a function as a library/executable destructor. This uses OS-specific linker sections to call a specific function at termination time.

Marks a function or static variable as a library/executable constructor. This uses OS-specific linker sections to call a specific function at load time.