- xbt_assert0(WSAStartup(wVersionRequested, &wsaData) == 0,
- "Cannot find a usable WinSock DLL");
+ int res;
+ res = WSAStartup(wVersionRequested, &wsaData);
+ xbt_assert(res == 0, "Cannot find a usable WinSock DLL");
/* Confirm that the WinSock DLL supports 2.0. */
/* Note that if the DLL supports versions greater */
/* Confirm that the WinSock DLL supports 2.0. */
/* Note that if the DLL supports versions greater */
HIBYTE(wsaData.wVersion) == 0,
"Cannot find a usable WinSock DLL");
XBT_INFO("Found and initialized winsock2");
HIBYTE(wsaData.wVersion) == 0,
"Cannot find a usable WinSock DLL");
XBT_INFO("Found and initialized winsock2");
- xbt_assert0(WSAStartup(0x0101, &wsaData) == 0,
- "Cannot find a usable WinSock DLL");
+ int res;
+ res = WSAStartup(0x0101, &wsaData);
+ xbt_assert(res == 0, "Cannot find a usable WinSock DLL");
XBT_VERB("Close %p", sock);
if (sock == _gras_lastly_selected_socket) {
XBT_VERB("Close %p", sock);
if (sock == _gras_lastly_selected_socket) {
*/
void gras_trp_send(gras_socket_t sd, char *data, long int size, int stable)
{
*/
void gras_trp_send(gras_socket_t sd, char *data, long int size, int stable)
{
(*sd->plugin->send) (sd, data, size, stable);
}
(*sd->plugin->send) (sd, data, size, stable);
}
- THROW1(unknown_error,0,"Function my_port unimplemented in plugin %s",sock->plugin->name);
+ THROWF(unknown_error,0,"Function my_port unimplemented in plugin %s",sock->plugin->name);
- THROW1(unknown_error,0,"Function peer_port unimplemented in plugin %s",sock->plugin->name);
+ THROWF(unknown_error,0,"Function peer_port unimplemented in plugin %s",sock->plugin->name);
- XBT_IN;
- THROW0(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
+ XBT_IN("");
+ THROWF(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
"If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
if (gras_if_RL())
chunk = xbt_malloc0(msg_size);
"If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
if (gras_if_RL())
chunk = xbt_malloc0(msg_size);
"Socket not suited for data send (was created with gras_socket_server(), not gras_socket_client())");
for (sent_sofar = 0; sent_sofar < msg_amount; sent_sofar++) {
"Socket not suited for data send (was created with gras_socket_server(), not gras_socket_client())");
for (sent_sofar = 0; sent_sofar < msg_amount; sent_sofar++) {
- XBT_IN;
- THROW0(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
+ XBT_IN("");
+ THROWF(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
"If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
if (gras_if_RL())
chunk = xbt_malloc(msg_size);
"If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
if (gras_if_RL())
chunk = xbt_malloc(msg_size);
for (got_sofar = 0; got_sofar < msg_amount; got_sofar++) {
XBT_CDEBUG(gras_trp_meas,
for (got_sofar = 0; got_sofar < msg_amount; got_sofar++) {
XBT_CDEBUG(gras_trp_meas,
- THROW0(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
+ THROWF(unknown_error,0,"measurement sockets were broken in this release of SimGrid and should be ported back in the future."
"If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");
"If you depend on it, sorry, you have to use an older version, or wait for the future version using it...");