nt_common.h

来自「MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程」· C头文件 代码 · 共 41 行

H
41
字号
#ifndef NT_COMMON_H#define NT_COMMON_H#include <winsock2.h>#include <windows.h>#ifdef __cplusplus#define DEBUG_OUTPUT#ifdef DEBUG_OUTPUT#include <stdio.h>extern bool g_bVerbose;#define DPRINTF(a) if (g_bVerbose) { printf("[%d]", g_nIproc); printf a ; fflush(stdout); }#define WDPRINTF(a) if (g_bVerbose) { printf("[%d]", g_nIproc); wprintf a ; fflush(stdout); }#else#define DPRINTF(a) #define WDPRINTF(a) #endif#endif#ifdef __cplusplusextern "C" {#endifextern int g_nIproc;extern int g_nNproc;void nt_error(char *string, int value);void nt_error_socket(char *string, int value);#ifdef __cplusplus};#endifextern char g_ErrMsg[1024];void MakeErrMsg(int error, char *pFormat, ...);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?