mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
13 lines
328 B
TypeScript
13 lines
328 B
TypeScript
/* tslint:disable */
|
|
|
|
@builtin export declare function iterateRoots(fn: (ref: usize) => void): void;
|
|
|
|
export namespace gc {
|
|
|
|
export function collect(): void {
|
|
if (isDefined(__gc_collect)) { __gc_collect(); return; }
|
|
WARNING("Calling 'gc.collect' requires a garbage collector to be present.");
|
|
unreachable();
|
|
}
|
|
}
|