diff options
author | 2021-07-22 15:41:03 -0700 | |
---|---|---|
committer | 2021-07-22 15:41:03 -0700 | |
commit | 0d79861a94b446f9a1f5f776ee520301aa50f4fd (patch) | |
tree | 54b9af031aceb11592b038cb7db66b4f4034ba28 /src/javascript/jsc/headergen/sizegen.cpp | |
parent | a8a4f280469d4d3baf8ea6e9dbce9ec06bd3d868 (diff) | |
download | bun-0d79861a94b446f9a1f5f776ee520301aa50f4fd.tar.gz bun-0d79861a94b446f9a1f5f776ee520301aa50f4fd.tar.zst bun-0d79861a94b446f9a1f5f776ee520301aa50f4fd.zip |
ok
Diffstat (limited to 'src/javascript/jsc/headergen/sizegen.cpp')
-rw-r--r-- | src/javascript/jsc/headergen/sizegen.cpp | 3 |
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; |