-/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "lua_private.hpp"
#include "simgrid/s4u/Host.hpp"
-extern "C" {
#include <lauxlib.h>
-}
XBT_LOG_NEW_DEFAULT_CATEGORY(lua_host, "Lua Host module");
static int l_host_get_name(lua_State * L)
{
sg_host_t ht = sglua_check_host(L, 1);
- lua_pushstring(L, ht->getCname());
+ lua_pushstring(L, ht->get_cname());
return 1;
}