Macro glium::assert_no_gl_error [] [src]

macro_rules! assert_no_gl_error {
    ($display: expr) => { ... };
    ($display: expr, $msg: expr) => { ... };
    ($display: expr, $fmt: expr, $($arg:tt)+) => { ... };
}

Calls the assert_no_error method on a glium::Display instance with file and line number information.

Aside from the first argument which must be the display, the arguments of this macro match the println! macro.

Example

Be careful when using this code, it's not being tested!
assert_no_gl_error!(my_display);
assert_no_gl_error!(my_display, "custom message");
assert_no_gl_error!(my_display, "custom format {}", 5);