Handle<Value> MSMap::Save(const Arguments &args) { HandleScope scope; int result; MSMap *map = ObjectWrap::Unwrap<MSMap>(args.This()); REQ_STR_ARG(0, outputfile); result = msSaveMap(map->this_, *outputfile); return scope.Close(Number::New(result)); }
int mapObj_save(mapObj* self, char *filename) { return msSaveMap(self, filename); }