-/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2019. 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. */
*/
static int l_host_destroy(lua_State *L)
{
- //sg_host_t ht = sglua_check_host(L, 1);
- //FIXME: not working..__MSG_host_priv_free(MSG_host_priv(ht));
+ sg_host_t ht = sglua_check_host(L, 1);
+ ht->destroy();
return 0;
}