]> AND Public Git Repository - simgrid.git/blobdiff - include/xbt/string.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deprecate SIMIX_is_maestro
[simgrid.git] / include / xbt / string.hpp
index a8bd3176fecf7f67295566322c099678012ba34a..c23e6f0b6cfe2a290f15c2f6c4daaf136710fbb4 100644 (file)
@@ -31,13 +31,13 @@ namespace xbt {
  *
  * @ingroup XBT_str
  */
-XBT_PUBLIC std::string string_printf(const char* fmt, ...);
+XBT_PUBLIC std::string string_printf(const char* fmt, ...) XBT_ATTRIB_PRINTF(1, 2);
 
 /** Create a C++ string from a C-style format
  *
  * @ingroup XBT_str
  */
-XBT_PUBLIC std::string string_vprintf(const char* fmt, va_list ap);
+XBT_PUBLIC std::string string_vprintf(const char* fmt, va_list ap) XBT_ATTRIB_PRINTF(1, 0);
 
 #if SIMGRID_HAVE_MC