Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Move all #include directives before any code for C++ too.
[simgrid.git] / src / bindings / lua / simgrid_lua.hpp
index c17b53b..21ddf1e 100644 (file)
@@ -6,13 +6,13 @@
 #ifndef SIMGRID_LUA_HPP
 #define SIMGRID_LUA_HPP
 
 #ifndef SIMGRID_LUA_HPP
 #define SIMGRID_LUA_HPP
 
-extern "C" {
-#include <lua.h>
+#include <lua.hpp>
 
 /* ********************************************************************************* */
 /*                           Plaftorm functions                                      */
 /* ********************************************************************************* */
 
 
 /* ********************************************************************************* */
 /*                           Plaftorm functions                                      */
 /* ********************************************************************************* */
 
+extern "C" {
 int console_open(lua_State* L);
 int console_close(lua_State* L);
 
 int console_open(lua_State* L);
 int console_close(lua_State* L);