printgm

Macro printgm 

Source
macro_rules! printgm {
    ($state:expr, $($x:expr),*) => { ... };
}
Expand description

Like println!, however it prints to the gmod server’s console. First arg is the lua state. Rest are varargs. Can be either a variable storing a str literal, or a referenced String / str variable

§Examples

use rglua::prelude::*;
fn gmod13_open(l: LuaState) {
    let world = "world";
    printgm!(l, "Hello {}!", world);
}