Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Misc issues in bindings/lua.
[simgrid.git] / src / bindings / lua / simgrid_lua.cpp
index 963c10b..0711115 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2018. The SimGrid Team.
+/* Copyright (c) 2010-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -9,12 +9,10 @@
 #include "lua_private.hpp"
 #include "lua_utils.hpp"
 #include "src/surf/xml/platf.hpp"
-
+#include <lauxlib.h>
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(lua, "Lua Bindings");
 
-#include <lauxlib.h>
-
 extern "C" int luaopen_simgrid(lua_State* L);
 
 /* ********************************************************************************* */
@@ -22,9 +20,9 @@ extern "C" int luaopen_simgrid(lua_State* L);
 /* ********************************************************************************* */
 
 /**
- * \brief Prints a log string with debug level.
- * \param L a Lua state
- * \return number of values returned to Lua
+ * @brief Prints a log string with debug level.
+ * @param L a Lua state
+ * @return number of values returned to Lua
  *
  * - Argument 1 (string): the text to print
  */
@@ -36,9 +34,9 @@ static int debug(lua_State* L) {
 }
 
 /**
- * \brief Prints a log string with info level.
- * \param L a Lua state
- * \return number of values returned to Lua
+ * @brief Prints a log string with info level.
+ * @param L a Lua state
+ * @return number of values returned to Lua
  *
  * - Argument 1 (string): the text to print
  */
@@ -110,8 +108,8 @@ static const luaL_Reg simgrid_functions[] = {
 /* ********************************************************************************* */
 
 /**
- * \brief Makes the core functions available to the Lua world.
- * \param L a Lua world
+ * @brief Makes the core functions available to the Lua world.
+ * @param L a Lua world
  */
 static void sglua_register_core_functions(lua_State *L)
 {
@@ -122,12 +120,12 @@ static void sglua_register_core_functions(lua_State *L)
 }
 
 /**
- * \brief Opens the simgrid Lua module.
+ * @brief Opens the simgrid Lua module.
  *
  * This function is called automatically by the Lua interpreter when some
  * Lua code requires the "simgrid" module.
  *
- * \param L the Lua state
+ * @param L the Lua state
  */
 int luaopen_simgrid(lua_State *L)
 {