From da98988090d746ae36dbdb8a9b8c1a5e87da3e5a Mon Sep 17 00:00:00 2001 From: Bigjango13 Date: Sun, 14 Jan 2024 03:09:03 -0500 Subject: [PATCH] Add address comments for methods and vtables --- src/method.ts | 6 +++--- src/vtable.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/method.ts b/src/method.ts index a668df2..7dc3aaa 100644 --- a/src/method.ts +++ b/src/method.ts @@ -1,4 +1,4 @@ -import { formatType } from './common'; +import { formatType, toHex } from './common'; export class Method { readonly self: string; @@ -31,7 +31,7 @@ export class Method { } // Generate Variable Definition - generateDefinition(nameSuffix?: string) { - return `${this.getType()} ${this.getName()}${nameSuffix !== undefined ? nameSuffix : ''};\n`; + generateDefinition(showAddress: bool, nameSuffix?: string) { + return `${this.getType()} ${this.getName()}${nameSuffix !== undefined ? nameSuffix : ''}; // ${toHex(this.address)}\n`; } } \ No newline at end of file diff --git a/src/vtable.ts b/src/vtable.ts index 5a93f70..31748a7 100644 --- a/src/vtable.ts +++ b/src/vtable.ts @@ -115,7 +115,7 @@ export class VTable implements Property { // Pointers if (this.#address !== null) { // Base - out += `extern ${this.#getName()} *${this.#getName()}_base;\n`; + out += `extern ${this.#getName()} *${this.#getName()}_base; // ${toHex(this.#address)}\n`; // Methods for (let i = 0; i < this.#methods.length; i++) { const info = this.#methods[i];