Module rglua::prelude[][src]

Re-exports

pub use crate::lua::*;
pub use crate::types::LuaCFunction;
pub use crate::types::LuaInteger;
pub use crate::types::LuaNumber;
pub use crate::types::LuaState;
pub use crate::types::LuaString;
pub use crate::userdata::Angle;
pub use crate::userdata::Vector;
pub use crate::util::dump_stack;
pub use crate::cstr;
pub use crate::printgm;
pub use crate::reg;
pub use crate::rstr;
pub use crate::try_cstr;
pub use crate::try_rstr;

Attribute Macros

Creates the exitpoint to garrysmod. Compiles down to gmod13_close.

Creates the entrypoint to garrysmod. Compiles down to gmod13_open.

Creates a valid function to be passed down to lua. Note this function will not be registered automatically for you, you must use luaL_register or functions like lua_pushcfunction. This may change in the future or allow for something like #[lua_function(name = “foo”, auto = true)]