Initial external decorator for annotating explicit import names; Use file name as default module name in imports; Emit empty memory if there are no static segments; Update TLSF and examples accordingly

This commit is contained in:
dcodeIO
2018-06-28 01:44:32 +02:00
parent 27e61f8f67
commit 9c16363796
110 changed files with 17069 additions and 16757 deletions

View File

@ -0,0 +1,13 @@
export declare function foo(): void; // external.foo
export declare namespace foo {
export function bar(): void; // foo.bar
}
@external("bar")
export declare function two(): void; // external.bar
@external("foo", "baz")
export declare function three(): void; // foo.baz
@external("foo", "var")
export declare const var_: i32;