Macro glium::assert_no_gl_error
source · macro_rules! assert_no_gl_error { ($display: expr) => { ... }; ($display: expr, $msg: expr) => { ... }; ($display: expr, $fmt: expr, $($arg:tt)+) => { ... }; }
Expand description
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
ⓘ
assert_no_gl_error!(my_display);
assert_no_gl_error!(my_display, "custom message");
assert_no_gl_error!(my_display, "custom format {}", 5);