1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Rename the _MD macro to D_METHOD

This new name also makes its purpose a little clearer

This is a step towards fixing #56
This commit is contained in:
Hein-Pieter van Braam
2017-02-13 12:47:24 +01:00
parent bf64df4427
commit 411ee71b4d
297 changed files with 5445 additions and 5443 deletions

View File

@@ -46,13 +46,13 @@ void Script::_notification( int p_what) {
void Script::_bind_methods() {
ClassDB::bind_method(_MD("can_instance"),&Script::can_instance);
//ClassDB::bind_method(_MD("instance_create","base_object"),&Script::instance_create);
ClassDB::bind_method(_MD("instance_has","base_object"),&Script::instance_has);
ClassDB::bind_method(_MD("has_source_code"),&Script::has_source_code);
ClassDB::bind_method(_MD("get_source_code"),&Script::get_source_code);
ClassDB::bind_method(_MD("set_source_code","source"),&Script::set_source_code);
ClassDB::bind_method(_MD("reload","keep_state"),&Script::reload,DEFVAL(false));
ClassDB::bind_method(D_METHOD("can_instance"),&Script::can_instance);
//ClassDB::bind_method(D_METHOD("instance_create","base_object"),&Script::instance_create);
ClassDB::bind_method(D_METHOD("instance_has","base_object"),&Script::instance_has);
ClassDB::bind_method(D_METHOD("has_source_code"),&Script::has_source_code);
ClassDB::bind_method(D_METHOD("get_source_code"),&Script::get_source_code);
ClassDB::bind_method(D_METHOD("set_source_code","source"),&Script::set_source_code);
ClassDB::bind_method(D_METHOD("reload","keep_state"),&Script::reload,DEFVAL(false));
}