gctx

static global context

usage

add to Cargo.toml toml [dependencies] gctx = "0.1.0"

example

```rust use gctx::ctx;

[derive(Debug)]

struct Ctx { size: usize, }

ctx!(G: Ctx);

fn main() {

ctx_init(Ctx {
    size: 12,
});

dbg!(ctx_get());
ctx_mut().size = 88;
dbg!(ctx_get());

} ```