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

Method GetError

src/sdl.cc:171–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171Handle<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
181Handle<Value> sdl::SetError(const Arguments& args) {
182 HandleScope scope;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected