Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
snake case xbt/signal.hpp
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 16 Jun 2018 07:03:09 +0000 (09:03 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 16 Jun 2018 07:03:09 +0000 (09:03 +0200)
include/xbt/log.hpp
include/xbt/signal.hpp

index 1c49502..083ce2d 100644 (file)
@@ -21,8 +21,7 @@ XBT_PUBLIC void log_exception(e_xbt_log_priority_t priority, const char* context
 XBT_PUBLIC void install_exception_handler();
 
 // deprecated
-XBT_ATTRIB_DEPRECATED_v323("xbt::log_exception()") XBT_PUBLIC
-    void logException(e_xbt_log_priority_t priority, const char* context, std::exception const& exception);
+XBT_ATTRIB_DEPRECATED_v323("xbt::log_exception()") XBT_PUBLIC void logException(e_xbt_log_priority_t priority, const char* context, std::exception const& exception);
 XBT_ATTRIB_DEPRECATED_v323("xbt::install_exception_handler()") XBT_PUBLIC void installExceptionHandler();
 }
 }
index 1cd6e06..4c1d46d 100644 (file)
@@ -37,8 +37,11 @@ namespace xbt {
       for (auto const& handler : handlers_)
         handler(args...);
     }
-    void disconnectSlots() { handlers_.clear(); }
-    int getSlotsAmount() { return handlers_.size(); }
+    void disconnect_slots() { handlers_.clear(); }
+    int get_slot_count() { return handlers_.size(); }
+    // deprecated
+    XBT_ATTRIB_DEPRECATED_v323("Please use xbt::disconnect_slots)") void disconnectSlots() { disconnect_slots(); }
+    XBT_ATTRIB_DEPRECATED_v323("Please use xbt::get_slot_count)") int getSlotsAmount() { return get_slot_count(); }
   };
 
 }