Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit da4d745

Browse files
committed
Export some internal functions
1 parent df87e87 commit da4d745

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

src/debug-agent.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#ifndef SRC_DEBUG_AGENT_H_
2323
#define SRC_DEBUG_AGENT_H_
2424

25+
#include "node.h"
2526
#include "util.h"
2627
#include "util-inl.h"
2728
#include "uv.h"
@@ -66,8 +67,8 @@ class AgentMessage {
6667

6768
class Agent {
6869
public:
69-
explicit Agent(node::Environment* env);
70-
~Agent();
70+
NODE_EXTERN explicit Agent(node::Environment* env);
71+
NODE_EXTERN ~Agent();
7172

7273
typedef void (*DispatchHandler)(node::Environment* env);
7374

src/node_internals.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,20 @@ inline MUST_USE_RESULT bool ParseArrayIndex(v8::Handle<v8::Value> arg,
152152
return true;
153153
}
154154

155-
void ThrowError(v8::Isolate* isolate, const char* errmsg);
156-
void ThrowTypeError(v8::Isolate* isolate, const char* errmsg);
157-
void ThrowRangeError(v8::Isolate* isolate, const char* errmsg);
158-
void ThrowErrnoException(v8::Isolate* isolate,
159-
int errorno,
160-
const char* syscall = nullptr,
161-
const char* message = nullptr,
162-
const char* path = nullptr);
163-
void ThrowUVException(v8::Isolate* isolate,
164-
int errorno,
165-
const char* syscall = nullptr,
166-
const char* message = nullptr,
167-
const char* path = nullptr,
168-
const char* dest = nullptr);
155+
NODE_EXTERN void ThrowError(v8::Isolate* isolate, const char* errmsg);
156+
NODE_EXTERN void ThrowTypeError(v8::Isolate* isolate, const char* errmsg);
157+
NODE_EXTERN void ThrowRangeError(v8::Isolate* isolate, const char* errmsg);
158+
NODE_EXTERN void ThrowErrnoException(v8::Isolate* isolate,
159+
int errorno,
160+
const char* syscall = nullptr,
161+
const char* message = nullptr,
162+
const char* path = nullptr);
163+
NODE_EXTERN void ThrowUVException(v8::Isolate* isolate,
164+
int errorno,
165+
const char* syscall = nullptr,
166+
const char* message = nullptr,
167+
const char* path = nullptr,
168+
const char* dest = nullptr);
169169

170170
NODE_DEPRECATED("Use ThrowError(isolate)",
171171
inline void ThrowError(const char* errmsg) {

0 commit comments

Comments
 (0)