diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:47:24 +0100 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-02-13 12:50:02 +0100 |
commit | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch) | |
tree | a3c28058efb7a80faed23bff683fe0931859ed52 /scene/main/http_request.cpp | |
parent | bf64df4427836a4e7a5060ee11d75eea6da79b14 (diff) | |
download | redot-engine-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz |
Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer
This is a step towards fixing #56
Diffstat (limited to 'scene/main/http_request.cpp')
-rw-r--r-- | scene/main/http_request.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp index cbe49c85af..77b08fd58b 100644 --- a/scene/main/http_request.cpp +++ b/scene/main/http_request.cpp @@ -535,28 +535,28 @@ int HTTPRequest::get_body_size() const{ void HTTPRequest::_bind_methods() { - ClassDB::bind_method(_MD("request","url","custom_headers","ssl_validate_domain","method","request_data"),&HTTPRequest::request,DEFVAL(PoolStringArray()),DEFVAL(true),DEFVAL(HTTPClient::METHOD_GET),DEFVAL(String())); - ClassDB::bind_method(_MD("cancel_request"),&HTTPRequest::cancel_request); + ClassDB::bind_method(D_METHOD("request","url","custom_headers","ssl_validate_domain","method","request_data"),&HTTPRequest::request,DEFVAL(PoolStringArray()),DEFVAL(true),DEFVAL(HTTPClient::METHOD_GET),DEFVAL(String())); + ClassDB::bind_method(D_METHOD("cancel_request"),&HTTPRequest::cancel_request); - ClassDB::bind_method(_MD("get_http_client_status"),&HTTPRequest::get_http_client_status); + ClassDB::bind_method(D_METHOD("get_http_client_status"),&HTTPRequest::get_http_client_status); - ClassDB::bind_method(_MD("set_use_threads","enable"),&HTTPRequest::set_use_threads); - ClassDB::bind_method(_MD("is_using_threads"),&HTTPRequest::is_using_threads); + ClassDB::bind_method(D_METHOD("set_use_threads","enable"),&HTTPRequest::set_use_threads); + ClassDB::bind_method(D_METHOD("is_using_threads"),&HTTPRequest::is_using_threads); - ClassDB::bind_method(_MD("set_body_size_limit","bytes"),&HTTPRequest::set_body_size_limit); - ClassDB::bind_method(_MD("get_body_size_limit"),&HTTPRequest::get_body_size_limit); + ClassDB::bind_method(D_METHOD("set_body_size_limit","bytes"),&HTTPRequest::set_body_size_limit); + ClassDB::bind_method(D_METHOD("get_body_size_limit"),&HTTPRequest::get_body_size_limit); - ClassDB::bind_method(_MD("set_max_redirects","amount"),&HTTPRequest::set_max_redirects); - ClassDB::bind_method(_MD("get_max_redirects"),&HTTPRequest::get_max_redirects); + ClassDB::bind_method(D_METHOD("set_max_redirects","amount"),&HTTPRequest::set_max_redirects); + ClassDB::bind_method(D_METHOD("get_max_redirects"),&HTTPRequest::get_max_redirects); - ClassDB::bind_method(_MD("set_download_file","path"),&HTTPRequest::set_download_file); - ClassDB::bind_method(_MD("get_download_file"),&HTTPRequest::get_download_file); + ClassDB::bind_method(D_METHOD("set_download_file","path"),&HTTPRequest::set_download_file); + ClassDB::bind_method(D_METHOD("get_download_file"),&HTTPRequest::get_download_file); - ClassDB::bind_method(_MD("get_downloaded_bytes"),&HTTPRequest::get_downloaded_bytes); - ClassDB::bind_method(_MD("get_body_size"),&HTTPRequest::get_body_size); + ClassDB::bind_method(D_METHOD("get_downloaded_bytes"),&HTTPRequest::get_downloaded_bytes); + ClassDB::bind_method(D_METHOD("get_body_size"),&HTTPRequest::get_body_size); - ClassDB::bind_method(_MD("_redirect_request"),&HTTPRequest::_redirect_request); - ClassDB::bind_method(_MD("_request_done"),&HTTPRequest::_request_done); + ClassDB::bind_method(D_METHOD("_redirect_request"),&HTTPRequest::_redirect_request); + ClassDB::bind_method(D_METHOD("_request_done"),&HTTPRequest::_request_done); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"use_threads"),"set_use_threads","is_using_threads"); ADD_PROPERTY(PropertyInfo(Variant::INT,"body_size_limit",PROPERTY_HINT_RANGE,"-1,2000000000"),"set_body_size_limit","get_body_size_limit"); |