mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 09:21:35 +00:00
Some thoughts on an initial stdlib to get things going
This commit is contained in:
1
src/glue/js.d.ts
vendored
1
src/glue/js.d.ts
vendored
@ -14,6 +14,7 @@ declare type bool = boolean;
|
||||
// Raw memory access (here: Binaryen memory)
|
||||
declare function store<T = u8>(ptr: usize, val: T): void;
|
||||
declare function load<T = u8>(ptr: usize): T;
|
||||
declare function assert(isTrue: bool): void;
|
||||
|
||||
// Other things that might or might not be useful
|
||||
declare function select<T>(ifTrue: T, ifFalse: T, condition: bool): T;
|
||||
|
Reference in New Issue
Block a user