CString/CArray was an illusion; Update and test tsconfig files

This commit is contained in:
dcodeIO
2017-12-11 02:03:15 +01:00
parent 0228ab91d9
commit d0b189b437
33 changed files with 477 additions and 509 deletions

18
std/portable/heap.d.ts vendored Normal file
View File

@ -0,0 +1,18 @@
/** A static class representing the heap. */
declare class Heap {
/** Allocates a chunk of memory and returns a pointer to it. */
static allocate(size: usize): usize;
/** Disposes a chunk of memory by its pointer. */
static dispose(ptr: usize): void;
/** Gets the amount of used heap space, in bytes. */
static readonly used: usize;
/** Gets the amount of free heap space, in bytes. */
static readonly free: usize;
/** Gets the size of the heap, in bytes. */
static readonly size: usize;
}

9
std/portable/heap.js Normal file
View File

@ -0,0 +1,9 @@
var globalScope = typeof window !== "undefined" && window || typeof global !== "undefined" && global || self;
globalScope["Heap"] = {
allocate: function() { throw new Error("not implemented"); },
dispose: function() { throw new Error("not implemented"); },
used: 0,
free: 0,
size: 0
};

View File

@ -0,0 +1,9 @@
{
"extends": "../../portable-assembly.json",
"compilerOptions": {
"diagnostics": true
},
"include": [
"./**/*.ts"
]
}