forked from libxmljs/libxmljs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibxmljs.h
More file actions
34 lines (26 loc) · 758 Bytes
/
libxmljs.h
File metadata and controls
34 lines (26 loc) · 758 Bytes
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
32
33
34
// Copyright 2009, Squish Tech, LLC.
#ifndef SRC_LIBXMLJS_H_
#define SRC_LIBXMLJS_H_
#include <v8.h>
#include <node.h>
#include "nan.h"
#define LIBXMLJS_ARGUMENT_TYPE_CHECK(arg, type, err) \
if (!arg->type()) { \
return Nan::ThrowTypeError(err); \
}
namespace libxmljs {
#ifdef LIBXML_DEBUG_ENABLED
static const bool debugging = true;
#else
static const bool debugging = false;
#endif
// Ensure that libxml is properly initialised and destructed at shutdown
class LibXMLJS {
public:
LibXMLJS();
virtual ~LibXMLJS();
private:
static LibXMLJS instance;
};
} // namespace libxmljs
#endif // SRC_LIBXMLJS_H_