Просмотр исходного кода

Change arg name 'export' to other to fix keyword conflict in C++11 (#745)

Some of the function arguments were named as "export" in core/iwasm/common/wasm_runtime_common.h, which result in conflicts with the C++11 keyword. Change them to other to fix the compilation error.
Carlos 4 лет назад
Родитель
Сommit
e07b58062f
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      core/iwasm/common/wasm_runtime_common.h

+ 4 - 4
core/iwasm/common/wasm_runtime_common.h

@@ -774,24 +774,24 @@ wasm_runtime_finalize_call_function(WASMExecEnv *exec_env,
 
 bool
 wasm_runtime_get_export_func_type(const WASMModuleCommon *module_comm,
-                                  const WASMExport *export,
+                                  const WASMExport *export_func_type,
                                   WASMType **out);
 
 bool
 wasm_runtime_get_export_global_type(const WASMModuleCommon *module_comm,
-                                    const WASMExport *export,
+                                    const WASMExport *export_global_type,
                                     uint8 *out_val_type,
                                     bool *out_mutability);
 
 bool
 wasm_runtime_get_export_memory_type(const WASMModuleCommon *module_comm,
-                                    const WASMExport *export,
+                                    const WASMExport *export_memory_type,
                                     uint32 *out_min_page,
                                     uint32 *out_max_page);
 
 bool
 wasm_runtime_get_export_table_type(const WASMModuleCommon *module_comm,
-                                   const WASMExport *export,
+                                   const WASMExport *export_table_type,
                                    uint8 *out_elem_type,
                                    uint32 *out_min_size,
                                    uint32 *out_max_size);