X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..HEAD:/src/bindings/lua/lua_private.hpp diff --git a/src/bindings/lua/lua_private.hpp b/src/bindings/lua/lua_private.hpp deleted file mode 100644 index e6d249b7bd..0000000000 --- a/src/bindings/lua/lua_private.hpp +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (c) 2010-2020. 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. */ - -/* SimGrid Lua bindings */ - -#ifndef LUA_PRIVATE_HPP -#define LUA_PRIVATE_HPP - -#include "simgrid/msg.h" -#include "simgrid_lua.hpp" - -void sglua_register_host_functions(lua_State* L); -msg_host_t sglua_check_host(lua_State* L, int index); - -void sglua_register_platf_functions(lua_State* L); - -#define lua_ensure(...) _XBT_IF_ONE_ARG(_lua_ensure_ARG1, _lua_ensure_ARGN, __VA_ARGS__)(__VA_ARGS__) -#define _lua_ensure_ARG1(cond) _lua_ensure_ARGN((cond), "Assertion " _XBT_STRINGIFY(cond) " failed") -#define _lua_ensure_ARGN(cond, ...) \ - do { \ - if (!(cond)) { \ - luaL_error(L, __VA_ARGS__); \ - return -1; \ - } \ - } while (0) - -#endif