Welcome to mirror list, hosted at ThFree Co, Russian Federation.

platform_win32.h « src - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df0dbd633b15299b3031155b63cf90f5760a2724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef NODE_PLATFORM_WIN32_H_
#define NODE_PLATFORM_WIN32_H_

#include <windows.h>

#define NO_IMPL(type, name, rv, args...)                                    \
          type  name ( args ) {                                             \
            HandleScope scope;                                              \
            fprintf(stderr, "Not implemented: "#type" "#name"("#args")\n"); \
            return rv;                                                      \
          }

#define RET_V8INT(value) \
          scope.Close(Integer::New(value));
#define RET_V8UNDEFINED \
          Undefined()
#define RET_V8TRUE \
          True()
#define RET_V8FALSE \
          False()

#define NO_IMPL_MSG(name...) \
          fprintf(stderr, "Not implemented: %s\n", #name);

namespace node {

void winapi_perror(const char* prefix);

}

#endif  // NODE_PLATFORM_WIN32_H_