From 5c71d433025fc3239dc69a2bc363684a5c8a86be Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Sun, 6 Jan 2019 13:57:23 +0100 Subject: Add missing documentation for @GDScript --- doc/classes/@GDScript.xml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml index 2bdfc56c44..601b1385ae 100644 --- a/doc/classes/@GDScript.xml +++ b/doc/classes/@GDScript.xml @@ -415,6 +415,21 @@ + Returns an array of dictionaries representing the current call stack. + [codeblock] + func _ready(): + foo() + + func foo(): + bar() + + func bar(): + print(get_stack()) + [/codeblock] + would print + [codeblock] + [{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}] + [/codeblock] @@ -488,7 +503,7 @@ - Returns True/False whether [code]s[/code] is an infinity value (either positive infinity or negative infinity). + Returns whether [code]s[/code] is an infinity value (either positive infinity or negative infinity). @@ -497,6 +512,7 @@ + Returns whether [code]instance[/code] is a valid object (e.g. has not been deleted from memory). @@ -505,7 +521,7 @@ - Returns True/False whether [code]s[/code] is a NaN (Not-A-Number) value. + Returns whether [code]s[/code] is a NaN (Not-A-Number) value. @@ -690,6 +706,7 @@ + Like [method print], but prints only when used in debug mode. -- cgit v1.2.3