* Get global PackedFunc from the runtime. * @param name The name of the function. * @returns The result function.
(name: string)
| 1115 | * @returns The result function. |
| 1116 | */ |
| 1117 | getGlobalFunc(name: string): PackedFunc { |
| 1118 | return this.getGlobalFuncInternal(name, true); |
| 1119 | } |
| 1120 | |
| 1121 | private getGlobalFuncInternal(name: string, autoAttachToScope = true): PackedFunc { |
| 1122 | const stack = this.lib.getOrAllocCallStack(); |
no test coverage detected