glfw: inline getError helper
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0af761d046
commit
1c10b309b2
1 changed files with 1 additions and 1 deletions
|
|
@ -121,6 +121,6 @@ fn convertError(e: c_int) Error!void {
|
|||
/// @remark This function may be called before @ref glfwInit.
|
||||
///
|
||||
/// @thread_safety This function may be called from any thread.
|
||||
pub fn getError() Error!void {
|
||||
pub inline fn getError() Error!void {
|
||||
return convertError(c.glfwGetError(null));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue