summaryrefslogtreecommitdiff
path: root/src/c-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/c-writer.cc')
-rw-r--r--src/c-writer.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/c-writer.cc b/src/c-writer.cc
index 52a75299..a698cd59 100644
--- a/src/c-writer.cc
+++ b/src/c-writer.cc
@@ -2506,7 +2506,8 @@ bool CWriter::IsSingleUnsharedMemory() {
}
void CWriter::InstallSegueBase(Memory* memory, bool save_old_value) {
- NonIndented([&] { Write("#if WASM_RT_USE_SEGUE", Newline()); });
+ NonIndented(
+ [&] { Write("#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE", Newline()); });
if (save_old_value) {
NonIndented([&] { Write("#if !WASM_RT_SEGUE_FREE_SEGMENT", Newline()); });
Write("void* segue_saved_base = wasm_rt_segue_read_base();", Newline());
@@ -2520,7 +2521,9 @@ void CWriter::InstallSegueBase(Memory* memory, bool save_old_value) {
void CWriter::RestoreSegueBase() {
NonIndented([&] {
- Write("#if WASM_RT_USE_SEGUE && !WASM_RT_SEGUE_FREE_SEGMENT", Newline());
+ Write(
+ "#if WASM_RT_USE_SEGUE_FOR_THIS_MODULE && !WASM_RT_SEGUE_FREE_SEGMENT",
+ Newline());
});
Write("wasm_rt_segue_write_base(segue_saved_base);", Newline());
NonIndented([&] { Write("#endif", Newline()); });