aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/headergen/sizegen.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-07-22 15:41:03 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-07-22 15:41:03 -0700
commit610c75a4922f76096b07dee38df1c101b61261a9 (patch)
tree4c264eb728230921214cef4497d41f9086e07dd3 /src/javascript/jsc/headergen/sizegen.cpp
parente914c5f3d23bae1d0a26ac7fdc35eb708faa96cf (diff)
downloadbun-610c75a4922f76096b07dee38df1c101b61261a9.tar.gz
bun-610c75a4922f76096b07dee38df1c101b61261a9.tar.zst
bun-610c75a4922f76096b07dee38df1c101b61261a9.zip
ok
Former-commit-id: 0d79861a94b446f9a1f5f776ee520301aa50f4fd
Diffstat (limited to 'src/javascript/jsc/headergen/sizegen.cpp')
-rw-r--r--src/javascript/jsc/headergen/sizegen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/javascript/jsc/headergen/sizegen.cpp b/src/javascript/jsc/headergen/sizegen.cpp
index 6999fcda0..ecad3f2f3 100644
--- a/src/javascript/jsc/headergen/sizegen.cpp
+++ b/src/javascript/jsc/headergen/sizegen.cpp
@@ -27,13 +27,14 @@ int main() {
cout << "// 1. \"make jsc-bindings-headers\"\n";
cout << "// 2. \"make sizegen\"\n";
cout << "// 3. \"make jsc-bindings-headers\"\n";
+ cout << "// ------------------------\n";
cout << "// You can verify the numbers written in this file at runtime via the `extern`d types\n";
cout << "// Run \"jsc-bindings-headers\" twice because it uses these values in the output. That's how all the bJSC__.* types are created - from these values. \n";
- cout << "// The data for this file is generated in headers-cpp.h \n";
int i = 0;
int len = sizeof(sizes)/sizeof(sizes[0]);
for (i = 0; i < len ; i++) {
cout << "pub const " << names[i] << " = " << sizes[i] << ";\n";
+ cout << "pub const " << names[i] << "_align = " << aligns[i] << ";\n";
}
return 0;