if(enable_jedule)
set(HAVE_JEDULE 1)
+else()
+ set(HAVE_JEDULE 0)
endif()
if(enable_mallocators)
#include <string.h>
#include "simgrid/simdag.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
#include "simgrid/jedule/jedule_sd_binding.h"
#endif
XBT_INFO("Simulation Time: %f", SD_get_clock());
XBT_INFO("------------------- Produce the trace file---------------------------");
XBT_INFO("Producing a jedule output (if active) of the run into %s", tracefilename?tracefilename:"minmin_test.jed");
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
jedule_sd_dump(tracefilename);
#endif
free(tracefilename);
}
printf("recv_buff = %d\n", recv_buff);
- //#ifdef HAVE_MC
- //MC_assert(recv_buff == size - 1);
- //#endif
}else{
MPI_Send(&rank, 1, MPI_INT, 0, 42, MPI_COMM_WORLD);
printf("Sent %d to rank 0\n", rank);
#include "xbt/dict.h"
#include "simgrid/jedule/jedule_platform.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
SG_BEGIN_DECL()
struct jed_event {
#include "jedule_events.h"
#include "jedule_platform.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
SG_BEGIN_DECL()
extern xbt_dynar_t jedule_event_list;
#include "xbt/dynar.h"
#include "xbt/dict.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
SG_BEGIN_DECL()
typedef struct jed_simgrid_container s_jed_simgrid_container_t, *jed_simgrid_container_t;
#include "simgrid_config.h"
#include "simgrid/simdag.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
SG_BEGIN_DECL()
XBT_PUBLIC(void) jedule_log_sd_event(SD_task_t task);
XBT_PUBLIC(void) jedule_setup_platform(void);
XBT_PUBLIC(int) MC_random(int min, int max);
-#ifdef HAVE_MC
+#if HAVE_MC
/* Internal variable used to check if we're running under the MC
*
#define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
#define SIMGRID_VERSION_BANNER "@SIMGRID_VERSION_BANNER@"
-#cmakedefine HAVE_JEDULE @HAVE_JEDULE@ /* Was Jedule compiled in? */
-#cmakedefine HAVE_LUA @HAVE_LUA@ /* Was the Lua support compiled in? */
+#define HAVE_JEDULE @HAVE_JEDULE@ /* Was Jedule compiled in? */
+#define HAVE_LUA @HAVE_LUA@ /* Was the Lua support compiled in? */
#define HAVE_MALLOCATOR @HAVE_MALLOCATOR@ /* Whether mallocators (object pools) were activated at compilation time. */
-#cmakedefine HAVE_MC @HAVE_MC@ /* Was the model-checking compiled in? */
-#cmakedefine HAVE_NS3 @HAVE_NS3@ /* Was the NS3 support compiled in? */
+#define HAVE_MC @HAVE_MC@ /* Was the model-checking compiled in? */
+#define HAVE_NS3 @HAVE_NS3@ /* Was the NS3 support compiled in? */
-#cmakedefine SIMGRID_HAVE_LIBSIG @SIMGRID_HAVE_LIBSIG@ /* Used in the public interface xbt/signal.hpp :( */
+#define SIMGRID_HAVE_LIBSIG @SIMGRID_HAVE_LIBSIG@ /* Used in the public interface xbt/signal.hpp :( */
#endif /* SIMGRID_PUBLIC_CONFIG_H */
#include <sys/time.h> /* Load it before the define next line to not mess with the system headers */
#define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
-#ifdef HAVE_MC
+#if HAVE_MC
#undef assert
#define assert(x) MC_assert(x)
#endif
XBT_PUBLIC(void) xbt_parmap_apply(xbt_parmap_t parmap, void_f_pvoid_t fun, xbt_dynar_t data);
XBT_PUBLIC(void*) xbt_parmap_next(xbt_parmap_t parmap);
-#ifdef HAVE_MC
+#if HAVE_MC
XBT_PUBLIC(xbt_parmap_t) xbt_parmap_mc_new(unsigned int num_workers, e_xbt_parmap_mode_t mode);
XBT_PUBLIC(int) xbt_parmap_mc_apply(xbt_parmap_t parmap, int_f_pvoid_pvoid_t fun, void *data, unsigned int length,
#ifndef SIMGRID_XBT_SIGNAL_HPP
#define SIMGRID_XBT_SIGNAL_HPP
-#ifdef SIMGRID_HAVE_LIBSIG
+#if SIMGRID_HAVE_LIBSIG
#include <sigc++/sigc++.h>
#else
#include <boost/signals2.hpp>
namespace simgrid {
namespace xbt {
-#ifdef SIMGRID_HAVE_LIBSIG
+#if SIMGRID_HAVE_LIBSIG
// Wraps sigc++ signals with the interface of boost::signals2:
template<class T> class signal;
}
}
-#endif
\ No newline at end of file
+#endif
#ifndef SIMGRIC_XBT_STRING_HPP
#define SIMGRIC_XBT_STRING_HPP
-#ifdef HAVE_MC
+#if HAVE_MC
#include <stdexcept>
#include <cstddef>
#endif
-#endif
\ No newline at end of file
+#endif
*/
XBT_PUBLIC(void) surf_network_model_init_CM02(void);
-#ifdef HAVE_NS3
+#if HAVE_NS3
/** \ingroup SURF_models
* \brief Initializes the platform with the network model NS3
*
SG_END_DECL()
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
#include "simgrid/jedule/jedule_sd_binding.h"
#endif
#include "simgrid/jedule/jedule_events.h"
#include "simgrid/jedule/jedule_platform.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
void jed_event_add_resources(jed_event_t event, xbt_dynar_t host_selection) {
xbt_dynar_t resource_subset_list;
#include "simgrid/jedule/jedule_output.h"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(jed_out, jedule, "Logging specific to Jedule output");
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
static xbt_dict_t host2_simgrid_parent_container;
static xbt_dict_t container_name2container;
#include <stdio.h>
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
XBT_LOG_NEW_CATEGORY(jedule, "Logging specific to Jedule");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(jed_sd, jedule, "Logging specific to Jedule SD binding");
#include <xbt/dynar.h>
#include <xbt/mmalloc.h>
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/xbt/mmalloc/mmprivate.h"
#endif
#include "mc/mc.h"
#include "src/mc/mc_protocol.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_request.h"
#include "src/mc/Process.hpp"
#include "src/mc/ModelChecker.hpp"
#include "src/mc/mc_smx.h"
#endif
-#ifdef HAVE_MC
+#if HAVE_MC
using simgrid::mc::remote;
#endif
{
unsigned int index = 0;
smx_synchro_t act = 0;
-#ifdef HAVE_MC
+#if HAVE_MC
s_smx_synchro_t temp_synchro;
#endif
/* FIXME: check also that src and dst processes are not suspended */
act = simcall_comm_wait__get__comm(req);
-#ifdef HAVE_MC
+#if HAVE_MC
// Fetch from MCed memory:
if (mc_mode == MC_MODE_SERVER) {
mc_model_checker->process().read(&temp_synchro, remote(act));
case SIMCALL_COMM_WAITANY: {
xbt_dynar_t comms;
-#ifdef HAVE_MC
+#if HAVE_MC
s_xbt_dynar_t comms_buffer;
size_t buffer_size = 0;
#endif
for (index = 0; index < comms->used; ++index) {
-#ifdef HAVE_MC
+#if HAVE_MC
// Fetch act from MCed memory:
if (mc_mode == MC_MODE_SERVER) {
memcpy(&act, buffer + comms->elmsize * index, sizeof(act));
case SIMCALL_MUTEX_LOCK: {
smx_mutex_t mutex = simcall_mutex_lock__get__mutex(req);
-#ifdef HAVE_MC
+#if HAVE_MC
s_smx_mutex_t temp_mutex;
if (mc_mode == MC_MODE_SERVER) {
mc_model_checker->process().read(&temp_mutex, remote(mutex));
if(mutex->owner == nullptr)
return true;
else
-#ifdef HAVE_MC
+#if HAVE_MC
// TODO, *(mutex->owner) :/
return MC_smx_resolve_process(mutex->owner)->pid ==
MC_smx_resolve_process(req->issuer)->pid;
void handle_simcall(smx_simcall_t req, int value)
{
-#ifndef HAVE_MC
+#if !HAVE_MC
SIMIX_simcall_handle(req, value);
#else
if (mc_mode == MC_MODE_CLIENT) {
XBT_PRIVATE void MC_client_send_message(void* message, std::size_t size);
XBT_PRIVATE void MC_client_send_simple_message(e_mc_message_type type);
-#ifdef HAVE_MC
+#if HAVE_MC
void MC_ignore(void* addr, std::size_t size);
#endif
#include <simgrid/sg_config.h>
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_safety.h"
#include "src/mc/mc_private.h"
#endif
}
-#ifdef HAVE_MC
+#if HAVE_MC
namespace simgrid {
namespace mc {
/* Configuration support */
}
#endif
-#ifndef HAVE_MC
+#if !HAVE_MC
#define _sg_do_model_check 0
#endif
_sg_mc_timeout = xbt_cfg_get_boolean(_sg_cfg_set, name);
}
-#ifdef HAVE_MC
+#if HAVE_MC
int _sg_do_model_check = 0;
int _sg_do_model_check_record = 0;
int _sg_mc_checkpoint = 0;
#include "src/simix/smx_process_private.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include <libunwind.h>
#include "src/mc/mc_comm_pattern.h"
#include "src/mc/mc_request.h"
}
}
-#ifdef HAVE_MC
+#if HAVE_MC
int user_max_depth_reached = 0;
/* MC global data structures */
}
-#ifdef HAVE_MC
+#if HAVE_MC
void MC_init()
{
simgrid::mc::processes_time.resize(simix_process_maxpid);
//xbt_abort();
}
-#ifdef HAVE_MC
+#if HAVE_MC
int MC_deadlock_check()
{
if (mc_mode == MC_MODE_SERVER) {
simgrid::mc::processes_time[process->pid] += amount;
}
-#ifdef HAVE_MC
+#if HAVE_MC
void MC_report_assertion_error(void)
{
XBT_INFO("**************************");
#include "src/mc/mc_record.h"
#include "src/mc/mc_base.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_request.h"
#include "src/mc/mc_private.h"
#include "src/mc/mc_state.h"
return nullptr;
}
-#ifdef HAVE_MC
+#if HAVE_MC
static char* MC_record_stack_to_string_liveness(xbt_fifo_t stack)
{
char* buffer;
#include "simgrid/s4u/As.hpp"
#include "simgrid/s4u/engine.hpp"
-#ifdef HAVE_LUA
+#if HAVE_LUA
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include "src/surf/surf_interface.hpp"
#include "simgrid/s4u/engine.hpp"
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
#include "simgrid/jedule/jedule_sd_binding.h"
#endif
xbt_cfg_setdefault_string(_sg_cfg_set, "host/model", "ptask_L07");
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
jedule_sd_init();
#endif
simgrid::s4u::Engine::instance()->loadPlatform(platform_file);
XBT_DEBUG("Workstation number: %zu, link number: %d", sg_host_count(), sg_link_count());
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
jedule_setup_platform();
#endif
XBT_VERB("Starting simulation...");
{
TRACE_surf_resource_utilization_release();
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
jedule_sd_cleanup();
jedule_sd_exit();
#endif
xbt_dynar_push(sd_global->completed_task_set,&task);
task->finish_time = task->surf_action->getFinishTime();
task->remains = 0;
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
jedule_log_sd_event(task);
#endif
break;
/* callback to decide if we want to use the model-checking */
#include "src/xbt_modinter.h"
-#ifdef HAVE_MC
+#if HAVE_MC
extern int _sg_do_model_check; /* this variable lives in xbt_main until I find a right location for it */
extern int _sg_do_model_check_record;
#endif
MC_record_path = xbt_cfg_get_string(_sg_cfg_set, name);
}
-#ifdef HAVE_MC
+#if HAVE_MC
static void _sg_cfg_cb_model_check_record(const char *name, int pos) {
_sg_do_model_check_record = xbt_cfg_get_boolean(_sg_cfg_set, name);
}
xbt_cfg_register(&_sg_cfg_set, "model-check/replay",
"Enable replay mode with the given path", xbt_cfgelm_string, 0, 1, _sg_cfg_cb_model_check_replay);
-#ifdef HAVE_MC
+#if HAVE_MC
/* do model-checking-record */
xbt_cfg_register(&_sg_cfg_set, "model-check/record",
"Record the model-checking paths",
xbt_cfgelm_boolean, 1, 1, _sg_cfg_cb__surf_network_crosstraffic);
xbt_cfg_setdefault_boolean(_sg_cfg_set, "network/crosstraffic", "no");
-#ifdef HAVE_NS3
+#if HAVE_NS3
xbt_cfg_register(&_sg_cfg_set, "ns3/TcpModel",
"The ns3 tcp model can be : NewReno or Reno or Tahoe",
xbt_cfgelm_string, 1, 1, NULL);
void ContextFactory::declare_context(void* context, std::size_t size)
{
-#ifdef HAVE_MC
+#if HAVE_MC
/* Store the address of the stack in heap to compare it apart of heap comparison */
if(MC_is_active())
MC_ignore_heap(context, size);
}
}
-}
\ No newline at end of file
+}
sysv_maestro_context = this;
}
-#ifdef HAVE_MC
+#if HAVE_MC
if (MC_is_active() && has_code()) {
MC_register_stack_area(this->stack_, process,
&(this->uc_), smx_context_usable_stack_size);
#include "smx_private.h"
#include "xbt/fifo.h"
#include "xbt/xbt_os_thread.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_private.h"
#endif
{
std::function<void()>* function = (std::function<void()>*) code;
(*function)();
-}
\ No newline at end of file
+}
#include <xbt/base.h>
#include "smx_private.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_forward.h"
#endif
'\n'.join(filter(nonempty, (func(simcall) for simcall in simcalls))))
for guard, list in guarded_simcalls.items():
- fd.write('\n#ifdef %s\n' % (guard))
+ fd.write('\n#if %s\n' % (guard))
fd.write('\n'.join(func(simcall) for simcall in list))
fd.write('\n#endif\n')
fd.write('#include <xbt/base.h>\n')
fd.write('#include "smx_private.h"\n')
- fd.write('#ifdef HAVE_MC\n')
+ fd.write('#if HAVE_MC\n')
fd.write('#include "src/mc/mc_forward.h"\n')
fd.write('#endif\n')
fd.write('\n')
#endif
size_t size = smx_context_stack_size + smx_context_guard_size;
-#ifdef HAVE_MC
+#if HAVE_MC
/* Cannot use posix_memalign when HAVE_MC. Align stack by hand, and save the
* pointer returned by xbt_malloc0. */
char *alloc = (char*)xbt_malloc0(size + xbt_pagesize);
XBT_WARN("Failed to remove page protection: %s", strerror(errno));
/* try to pursue anyway */
}
-#ifdef HAVE_MC
+#if HAVE_MC
/* Retrieve the saved pointer. See SIMIX_context_stack_new above. */
stack = *((void **)stack - 1);
#endif
#include "src/mc/mc_replay.h"
#include "simgrid/sg_config.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_private.h"
#include "src/mc/mc_protocol.h"
#include "src/mc/mc_client.h"
-#endif
-#ifdef HAVE_MC
#include <stdlib.h>
#include "src/mc/mc_protocol.h"
#endif
#include "src/mc/mc_record.h"
-#ifdef HAVE_SMPI
+#if HAVE_SMPI
#include "src/smpi/private.h"
#endif
*/
void SIMIX_global_init(int *argc, char **argv)
{
-#ifdef HAVE_MC
+#if HAVE_MC
_sg_do_model_check = getenv(MC_ENV_VARIABLE) != NULL;
#endif
if (sg_cfg_get_boolean("clean_atexit"))
atexit(SIMIX_clean);
-#ifdef HAVE_MC
+#if HAVE_MC
// The communication initialization is done ASAP.
// We need to communicate initialization of the different layers to the model-checker.
MC_client_init();
xbt_fifo_remove_item(fifo, item);
xbt_fifo_free_item(item);
synchro->comm.refcount++;
-#ifdef HAVE_MC
+#if HAVE_MC
synchro->comm.rdv_cpy = synchro->comm.rdv;
#endif
synchro->comm.rdv = NULL;
e_smx_comm_type_t type; /* Type of the communication (SIMIX_COMM_SEND or SIMIX_COMM_RECEIVE) */
smx_mailbox_t rdv; /* Rendez-vous where the comm is queued */
-#ifdef HAVE_MC
+#if HAVE_MC
smx_mailbox_t rdv_cpy; /* Copy of the rendez-vous where the comm is queued, MC needs it for DPOR
(comm.rdv set to NULL when the communication is removed from the mailbox
(used as garbage collector)) */
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "colls_private.h"
-#ifdef HAVE_MC
+#if HAVE_MC
#include "src/mc/mc_private.h"
#endif
#include <float.h>
new_t->attributes=NULL;
*new_type = new_t;
-#ifdef HAVE_MC
+#if HAVE_MC
if(MC_is_active())
MC_ignore(&(new_t->in_use), sizeof(new_t->in_use));
#endif
void smpi_datatype_use(MPI_Datatype type){
if(type)type->in_use++;
-#ifdef HAVE_MC
+#if HAVE_MC
if(MC_is_active())
MC_ignore(&(type->in_use), sizeof(type->in_use));
#endif
if(type && type->in_use == 0 && (type->flags & DT_FLAG_DESTROYED))
smpi_datatype_free(&type);
-#ifdef HAVE_MC
+#if HAVE_MC
if(MC_is_active())
MC_ignore(&(type->in_use), sizeof(type->in_use));
#endif
#ifndef NETWORK_INTERFACE_CPP_
#define NETWORK_INTERFACE_CPP_
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_network, surf,
- "Logging specific to the SURF network module");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_network, surf, "Logging specific to the SURF network module");
/*********
* C API *
boost::unordered_map<std::string,Link *> *Link::links = new boost::unordered_map<std::string,Link *>();
Link *Link::byName(const char* name) {
- Link * res = NULL;
- try {
- res = links->at(name);
- } catch (std::out_of_range& e) {}
-
- return res;
+ if (links->find(name) == links->end())
+ return NULL;
+ return links->at(name);
}
/** @brief Returns the amount of links in the platform */
int Link::linksCount() {
surf_network_model_init_IB},
{"CM02", "Legacy network analytic model (Very similar to LV08, but without corrective factors. The timings of small messages are thus poorly modeled).",
surf_network_model_init_CM02},
-#ifdef HAVE_NS3
+#if HAVE_NS3
{"NS3", "Network pseudo-model using the NS3 tcp model instead of an analytic model", surf_network_model_init_NS3},
#endif
{"Reno", "Model from Steven H. Low using lagrange_solve instead of lmm_solve (experts only; check the code for more info).",
#include "src/surf/xml/platf.hpp"
-#ifdef HAVE_LUA
+#if HAVE_LUA
extern "C" {
#include "src/bindings/lua/simgrid_lua.h"
/* This function acts as a main in the parsing area. */
void parse_platform_file(const char *file)
{
-#ifdef HAVE_LUA
+#if HAVE_LUA
int is_lua = (file != NULL && strlen(file) > 3 && file[strlen(file)-3] == 'l' && file[strlen(file)-2] == 'u'
&& file[strlen(file)-1] == 'a');
#endif
sg_platf_init();
-#ifdef HAVE_LUA
+#if HAVE_LUA
/* Check if file extension is "lua". If so, we will use
* the lua bindings to parse the platform file (since it is
* written in lua). If not, we will use the (old?) XML parser
#include "xbt/str.h"
#include "xbt/module.h" /* xbt_binary_name */
#include "src/xbt_modinter.h" /* backtrace initialization headers */
-#ifdef HAVE_MC
+#if HAVE_MC
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#endif
free(cmd);
}
-#ifdef HAVE_MC
-
+#if HAVE_MC
int xbt_libunwind_backtrace(void* bt[XBT_BACKTRACE_SIZE], int size){
int i = 0;
/* The following categories are only defined in libsimgrid */
/* bindings */
-#ifdef HAVE_LUA
+#if HAVE_LUA
XBT_LOG_CONNECT(lua);
XBT_LOG_CONNECT(lua_host);
XBT_LOG_CONNECT(lua_platf);
XBT_LOG_CONNECT(instr_TI_trace);
/* jedule */
-#ifdef HAVE_JEDULE
+#if HAVE_JEDULE
XBT_LOG_CONNECT(jedule);
XBT_LOG_CONNECT(jed_out);
XBT_LOG_CONNECT(jed_sd);
#endif
/* mc */
-#ifdef HAVE_MC
+#if HAVE_MC
XBT_LOG_CONNECT(mc);
XBT_LOG_CONNECT(mc_checkpoint);
XBT_LOG_CONNECT(mc_comm_determinism);
/* simdag */
XBT_LOG_CONNECT(sd);
XBT_LOG_CONNECT(sd_daxparse);
-#ifdef HAVE_GRAPHVIZ
+#if HAVE_GRAPHVIZ
XBT_LOG_CONNECT(sd_dotparse);
#endif
XBT_LOG_CONNECT(sd_kernel);
XBT_LOG_CONNECT(surf_lagrange_dichotomy);
XBT_LOG_CONNECT(surf_maxmin);
XBT_LOG_CONNECT(surf_network);
-#ifdef HAVE_NS3
+#if HAVE_NS3
XBT_LOG_CONNECT(ns3);
#endif
XBT_LOG_CONNECT(surf_parse);
}
/* Override the malloc-like functions if MC is activated at compile time */
-#ifdef HAVE_MC
+#if HAVE_MC
/* ***** Temporary allocator
*
static void futex_wake(unsigned *uaddr, unsigned val);
#endif
-#ifndef _MSC_VER
static void xbt_parmap_busy_master_wait(xbt_parmap_t parmap);
static void xbt_parmap_busy_worker_signal(xbt_parmap_t parmap);
static void xbt_parmap_busy_master_signal(xbt_parmap_t parmap);
static void xbt_parmap_busy_worker_wait(xbt_parmap_t parmap, unsigned round);
-#endif
-#ifdef HAVE_MC
+#if HAVE_MC
static void xbt_parmap_mc_work(xbt_parmap_t parmap, int worker_id);
static void *xbt_parmap_mc_worker_main(void *arg);
#endif
xbt_dynar_t data; /**< parameters to pass to fun in parallel */
std::atomic<unsigned int> index; /**< index of the next element of data to pick */
-#ifdef HAVE_MC
+#if HAVE_MC
int finish;
void* ref_snapshot;
int_f_pvoid_pvoid_t snapshot_compare;
return parmap;
}
-#ifdef HAVE_MC
+#if HAVE_MC
/**
* \brief Creates a parallel map object
* \param num_workers number of worker threads to create
}
}
-#ifdef HAVE_MC
+#if HAVE_MC
/**
* \brief Applies a list of tasks in parallel.
namespace simgrid {
namespace xbt {
-#ifdef HAVE_MC
+#if HAVE_MC
const char string::NUL = '\0';
#include "xbt/misc.h"
#include "simgrid_config.h"
-#include "src/internal_config.h" /* HAVE_MC */
#include "src/portable.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
xbt_dynar_free(&xbt_cmdline);
xbt_log_postexit();
free(xbt_binary_name);
-#ifdef HAVE_MC
+#if HAVE_MC
mmalloc_postexit();
#endif
}
)
endif()
-if(${HAVE_LUA})
+if(HAVE_LUA)
set(simgrid_sources ${simgrid_sources} ${LUA_SRC})
else()
set(EXTRA_DIST ${EXTRA_DIST} ${LUA_SRC})