MCPcopy Create free account
hub / github.com/creationix/node-sdl / ClearError

Method ClearError

src/sdl.cc:159–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159Handle<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
171Handle<Value> sdl::GetError(const Arguments& args) {
172 HandleScope scope;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected