| 169 | } |
| 170 | |
| 171 | Handle<Value> sdl::GetError(const Arguments& args) { |
| 172 | HandleScope scope; |
| 173 | |
| 174 | if (!(args.Length() == 0)) { |
| 175 | return ThrowException(Exception::TypeError(String::New("Invalid arguments: Expected GetError()"))); |
| 176 | } |
| 177 | |
| 178 | return String::New(SDL_GetError()); |
| 179 | } |
| 180 | |
| 181 | Handle<Value> sdl::SetError(const Arguments& args) { |
| 182 | HandleScope scope; |
nothing calls this directly
no outgoing calls
no test coverage detected