2013-05-09 14:04:22 -05:00
|
|
|
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-10-06 23:16:35 -05:00
|
|
|
const INVALID_ENUM : u32 = 0;
|
|
|
|
const INVALID_VALUE : u32 = 1;
|
2013-05-09 14:04:22 -05:00
|
|
|
|
2014-05-22 18:57:53 -05:00
|
|
|
fn gl_err_str(err: u32) -> String
|
2013-05-09 14:04:22 -05:00
|
|
|
{
|
|
|
|
match err
|
|
|
|
{
|
2014-05-25 05:17:19 -05:00
|
|
|
INVALID_ENUM => { "Invalid enum".to_string() },
|
|
|
|
INVALID_VALUE => { "Invalid value".to_string() },
|
|
|
|
_ => { "Unknown error".to_string() }
|
2013-05-09 14:04:22 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {}
|