| 157 | } |
| 158 | |
| 159 | Handle<Value> sdl::ClearError(const Arguments& args) { |
| 160 | HandleScope scope; |
| 161 | |
| 162 | if (!(args.Length() == 0)) { |
| 163 | return ThrowException(Exception::TypeError(String::New("Invalid arguments: Expected ClearError()"))); |
| 164 | } |
| 165 | |
| 166 | SDL_ClearError(); |
| 167 | |
| 168 | return Undefined(); |
| 169 | } |
| 170 | |
| 171 | Handle<Value> sdl::GetError(const Arguments& args) { |
| 172 | HandleScope scope; |
nothing calls this directly
no outgoing calls
no test coverage detected