Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / PyFMI-2.6-importlogger.patch
1 diff -Naur PyFMI/src/pyfmi/fmi.pyx PyFMI_dev/src/pyfmi/fmi.pyx
2 --- PyFMI/src/pyfmi/fmi.pyx     2020-03-04 22:13:53.000000000 +0100
3 +++ PyFMI_dev/src/pyfmi/fmi.pyx 2024-02-14 15:24:51.801418608 +0100
4 @@ -151,17 +151,17 @@
5  FMI_OUTPUTS = 2
6  
7  #CALLBACKS
8 -cdef void importlogger(FMIL.jm_callbacks* c, FMIL.jm_string module, FMIL.jm_log_level_enu_t log_level, FMIL.jm_string message):
9 +cdef void importlogger(FMIL.jm_callbacks* c, FMIL.jm_string module, FMIL.jm_log_level_enu_t log_level, FMIL.jm_string message) noexcept:
10      if c.context != NULL:
11          (<FMUModelBase>c.context)._logger(module,log_level,message)
12   
13  #CALLBACKS
14 -cdef void importlogger2(FMIL.jm_callbacks* c, FMIL.jm_string module, FMIL.jm_log_level_enu_t log_level, FMIL.jm_string message):
15 +cdef void importlogger2(FMIL.jm_callbacks* c, FMIL.jm_string module, FMIL.jm_log_level_enu_t log_level, FMIL.jm_string message) noexcept:
16      if c.context != NULL:
17          (<FMUModelBase2>c.context)._logger(module, log_level, message)
18  
19  #CALLBACKS
20 -cdef void importlogger_load_fmu(FMIL.jm_callbacks* c, FMIL.jm_string module, FMIL.jm_log_level_enu_t log_level, FMIL.jm_string message):
21 +cdef void importlogger_load_fmu(FMIL.jm_callbacks* c, FMIL.jm_string module, FMIL.jm_log_level_enu_t log_level, FMIL.jm_string message) noexcept:
22      (<list>c.context).append("FMIL: module = %s, log level = %d: %s"%(module, log_level, message))
23  
24  cdef class ModelBase: